Skip to content

Commit

Permalink
of: remove of_platform_driver
Browse files Browse the repository at this point in the history
The last user of of_platform_driver is converted to a regular
platform_driver, so of_platform_driver can be removed now.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
  • Loading branch information
Rob Herring authored and Grant Likely committed Jun 12, 2013
1 parent c45640e commit f70c64f
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions include/linux/of_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,6 @@ struct of_dev_auxdata {
{ .compatible = _compat, .phys_addr = _phys, .name = _name, \
.platform_data = _pdata }

/**
* of_platform_driver - Legacy of-aware driver for platform devices.
*
* An of_platform_driver driver is attached to a basic platform_device on
* the ibm ebus (ibmebus_bus_type).
*/
struct of_platform_driver
{
int (*probe)(struct platform_device* dev,
const struct of_device_id *match);
int (*remove)(struct platform_device* dev);

int (*suspend)(struct platform_device* dev, pm_message_t state);
int (*resume)(struct platform_device* dev);
int (*shutdown)(struct platform_device* dev);

struct device_driver driver;
};
#define to_of_platform_driver(drv) \
container_of(drv,struct of_platform_driver, driver)

extern const struct of_device_id of_default_bus_match_table[];

/* Platform drivers register/unregister */
Expand Down

0 comments on commit f70c64f

Please sign in to comment.