summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>2011-08-20 19:42:20 +0200
committerPhilippe LANGLAIS <philippe.langlais@stericsson.com>2011-10-13 10:06:11 +0200
commit2f409f1c1ee1ac98e2340bdf5aaedff5757d3b43 (patch)
tree0746693d591387677e88f600cee165acde978d45
parent2096a53f2a5b655e88e75890d77276d6e01909b2 (diff)
cw1200: Fix: .remove callback for cw1200_power_driver
Dedicated platform driver is used for detection of late interrupts. Implementation of the driver was missing .remove callback. It was not possible to remove cw1200 driver without this callback. ST-Ericsson ID: 355220 Change-Id: Ia8b5a88fcbb3ec86973016fff5dad98dc9ac78f1 Signed-off-by: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/29196 Reviewed-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33514 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
-rw-r--r--drivers/staging/cw1200/pm.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/staging/cw1200/pm.c b/drivers/staging/cw1200/pm.c
index 694f97851ee..2e5c8085bf8 100644
--- a/drivers/staging/cw1200/pm.c
+++ b/drivers/staging/cw1200/pm.c
@@ -17,6 +17,7 @@
#include "sbus.h"
static int cw1200_suspend_late(struct device *dev);
+static int cw1200_pm_remove(struct platform_device *pdev);
/* private */
struct cw1200_suspend_state {
@@ -30,8 +31,11 @@ static struct dev_pm_ops cw1200_pm_ops = {
.suspend_noirq = cw1200_suspend_late,
};
static struct platform_driver cw1200_power_driver = {
- .driver.name = "cw1200_power",
- .driver.pm = &cw1200_pm_ops,
+ .remove = cw1200_pm_remove,
+ .driver = {
+ .name = "cw1200_power",
+ .pm = &cw1200_pm_ops,
+ },
};
static struct platform_device cw1200_power_device = {
.name = "cw1200_power",
@@ -151,6 +155,11 @@ static int cw1200_suspend_late(struct device *dev)
return 0;
}
+static int cw1200_pm_remove(struct platform_device *pdev)
+{
+ return 0;
+}
+
int cw1200_wow_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
{
struct cw1200_common *priv = hw->priv;