···122122using these calls except with such hotplug-deficient drivers.123123124124 struct platform_device *platform_device_alloc(125125- char *name, unsigned id);125125+ const char *name, int id);126126127127You can use platform_device_alloc() to dynamically allocate a device, which128128you will then initialize with resources and platform_device_register().129129A better solution is usually:130130131131 struct platform_device *platform_device_register_simple(132132- char *name, unsigned id,133133- struct resource *res, unsigned nres);132132+ const char *name, int id,133133+ struct resource *res, unsigned int nres);134134135135You can use platform_device_register_simple() as a one-step call to allocate136136and register a device.