summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>2011-08-20 19:42:20 +0200
committerLee Jones <lee.jones@linaro.org>2012-01-05 10:19:59 +0000
commit6bbf155607c6c7520a2561bfb02b5ca73d4fd627 (patch)
treea686650554e760ba43a6eb19d9aedea4dab6e004
parent9d59aa3f293951fd75e7894b517cad8d4d68ca18 (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;