mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drivers_base: make argument to platform_device_register_full const
platform_device_register_full doesn't modify *pdevinfo so it can be marked as const without further adaptions. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
11e3123d9f
commit
5a3072be6c
2 changed files with 2 additions and 2 deletions
|
|
@ -383,7 +383,7 @@ EXPORT_SYMBOL_GPL(platform_device_unregister);
|
|||
* Returns &struct platform_device pointer on success, or ERR_PTR() on error.
|
||||
*/
|
||||
struct platform_device *platform_device_register_full(
|
||||
struct platform_device_info *pdevinfo)
|
||||
const struct platform_device_info *pdevinfo)
|
||||
{
|
||||
int ret = -ENOMEM;
|
||||
struct platform_device *pdev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue