summaryrefslogtreecommitdiff
path: root/drivers/staging
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-12-06 11:00:29 +0100
commitd1fc21f98070c32635b359f80d0197df3800008d (patch)
tree5c8347279daaf58dd129776b8555b0b57d71b7a5 /drivers/staging
parent7b4804016029ff07e210edfc9eb4b3bf7af55cc9 (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>
Diffstat (limited to 'drivers/staging')
-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;