Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Driver core: Update some prototypes in platform.txt

Just make these match the actual code.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Stephen Rothwell and committed by
Greg Kroah-Hartman
44414e14 cd35449b

+3 -3
+3 -3
Documentation/driver-model/platform.txt
··· 122 122 using these calls except with such hotplug-deficient drivers. 123 123 124 124 struct platform_device *platform_device_alloc( 125 - char *name, unsigned id); 125 + const char *name, int id); 126 126 127 127 You can use platform_device_alloc() to dynamically allocate a device, which 128 128 you will then initialize with resources and platform_device_register(). 129 129 A better solution is usually: 130 130 131 131 struct platform_device *platform_device_register_simple( 132 - char *name, unsigned id, 133 - struct resource *res, unsigned nres); 132 + const char *name, int id, 133 + struct resource *res, unsigned int nres); 134 134 135 135 You can use platform_device_register_simple() as a one-step call to allocate 136 136 and register a device.