diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-21 11:38:50 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-18 18:15:42 -0500 |
commit | cf4abfcc0df2985ff6061f74e63b8353f2a1d0bc (patch) | |
tree | 78e6924ad56e9cad72266693dc4f29a349235f44 /drivers | |
parent | 5a09b7120a965a7d7e8494d0ed509135bbce0118 (diff) |
MFD: mcp-core: remove legacy driver suspend/resume methods
The legacy driver suspend/resume methods are no longer used, so get rid
of them.
Acked-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/mcp-core.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/mfd/mcp-core.c b/drivers/mfd/mcp-core.c index c409d6327140..6acf2e03f2ba 100644 --- a/drivers/mfd/mcp-core.c +++ b/drivers/mfd/mcp-core.c | |||
@@ -47,39 +47,11 @@ static int mcp_bus_remove(struct device *dev) | |||
47 | return 0; | 47 | return 0; |
48 | } | 48 | } |
49 | 49 | ||
50 | static int mcp_bus_suspend(struct device *dev, pm_message_t state) | ||
51 | { | ||
52 | struct mcp *mcp = to_mcp(dev); | ||
53 | int ret = 0; | ||
54 | |||
55 | if (dev->driver) { | ||
56 | struct mcp_driver *drv = to_mcp_driver(dev->driver); | ||
57 | |||
58 | ret = drv->suspend(mcp, state); | ||
59 | } | ||
60 | return ret; | ||
61 | } | ||
62 | |||
63 | static int mcp_bus_resume(struct device *dev) | ||
64 | { | ||
65 | struct mcp *mcp = to_mcp(dev); | ||
66 | int ret = 0; | ||
67 | |||
68 | if (dev->driver) { | ||
69 | struct mcp_driver *drv = to_mcp_driver(dev->driver); | ||
70 | |||
71 | ret = drv->resume(mcp); | ||
72 | } | ||
73 | return ret; | ||
74 | } | ||
75 | |||
76 | static struct bus_type mcp_bus_type = { | 50 | static struct bus_type mcp_bus_type = { |
77 | .name = "mcp", | 51 | .name = "mcp", |
78 | .match = mcp_bus_match, | 52 | .match = mcp_bus_match, |
79 | .probe = mcp_bus_probe, | 53 | .probe = mcp_bus_probe, |
80 | .remove = mcp_bus_remove, | 54 | .remove = mcp_bus_remove, |
81 | .suspend = mcp_bus_suspend, | ||
82 | .resume = mcp_bus_resume, | ||
83 | }; | 55 | }; |
84 | 56 | ||
85 | /** | 57 | /** |