Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10dbc5e3 authored by Rob Herring's avatar Rob Herring Committed by Grant Likely
Browse files

driver core: move to_platform_driver to platform_device.h



In converting the last remaining of_platform_driver (ibmebus) to a regular
platform driver, to_platform_driver is needed to replace
to_of_platform_driver.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Tested-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent 8d561b60
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -29,9 +29,6 @@
/* For automatically allocated device IDs */
static DEFINE_IDA(platform_devid_ida);

#define to_platform_driver(drv)	(container_of((drv), struct platform_driver, \
				 driver))

struct device platform_bus = {
	.init_name	= "platform",
};
+3 −0
Original line number Diff line number Diff line
@@ -180,6 +180,9 @@ struct platform_driver {
	const struct platform_device_id *id_table;
};

#define to_platform_driver(drv)	(container_of((drv), struct platform_driver, \
				 driver))

extern int platform_driver_register(struct platform_driver *);
extern void platform_driver_unregister(struct platform_driver *);