You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Driver Core: constify the name passed to platform_device_register_simple
This name is just passed to platform_device_alloc which has its parameter declared const. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
92b421416f
commit
ae72cddb23
@@ -360,7 +360,7 @@ EXPORT_SYMBOL_GPL(platform_device_unregister);
|
||||
* the Linux driver model. In particular, when such drivers are built
|
||||
* as modules, they can't be "hotplugged".
|
||||
*/
|
||||
struct platform_device *platform_device_register_simple(char *name, int id,
|
||||
struct platform_device *platform_device_register_simple(const char *name, int id,
|
||||
struct resource *res, unsigned int num)
|
||||
{
|
||||
struct platform_device *pdev;
|
||||
|
||||
Reference in New Issue
Block a user