@@ -1506,14 +1506,10 @@ struct device *platform_find_device_by_driver(struct device *start,
}
EXPORT_SYMBOL_GPL(platform_find_device_by_driver);
-void __weak __init early_platform_cleanup(void) { }
-
int __init platform_bus_init(void)
{
int error;
- early_platform_cleanup();
-
error = device_register(&platform_bus);
if (error) {
put_device(&platform_bus);
@@ -352,7 +352,4 @@ extern int platform_pm_restore(struct device *dev);
#define USE_PLATFORM_PM_SLEEP_OPS
#endif
-/* For now only SuperH uses it */
-void early_platform_cleanup(void);
-
#endif /* _PLATFORM_DEVICE_H_ */
This weak stub was only overriden by the now remove sh architecture. Signed-off-by: Christoph Hellwig <hch@lst.de> --- drivers/base/platform.c | 4 ---- include/linux/platform_device.h | 3 --- 2 files changed, 7 deletions(-)