aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwspinlock/omap_hwspinlock.c
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2011-09-11 11:54:50 -0400
committerOhad Ben-Cohen <ohad@wizery.com>2011-09-21 12:57:45 -0400
commit9efb4a1bb9e46d26a15116e3c72b1b81c62d8337 (patch)
tree499140e6ceb0d6697c5f8c8914da349241f23da4 /drivers/hwspinlock/omap_hwspinlock.c
parentf84a8ecfca9229e9227c6ec84123b114ee634959 (diff)
hwspinlock/omap: omap_hwspinlock_remove should be __devexit
Mark omap_hwspinlock_remove with __devexit (and use __devexit_p appropriately) so the function can be discarded when the conditions are met. Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'drivers/hwspinlock/omap_hwspinlock.c')
-rw-r--r--drivers/hwspinlock/omap_hwspinlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwspinlock/omap_hwspinlock.c b/drivers/hwspinlock/omap_hwspinlock.c
index aec30064a466..887d34effb3a 100644
--- a/drivers/hwspinlock/omap_hwspinlock.c
+++ b/drivers/hwspinlock/omap_hwspinlock.c
@@ -142,7 +142,7 @@ iounmap_base:
142 return ret; 142 return ret;
143} 143}
144 144
145static int omap_hwspinlock_remove(struct platform_device *pdev) 145static int __devexit omap_hwspinlock_remove(struct platform_device *pdev)
146{ 146{
147 struct hwspinlock_device *bank = platform_get_drvdata(pdev); 147 struct hwspinlock_device *bank = platform_get_drvdata(pdev);
148 void __iomem *io_base = bank->lock[0].priv - LOCK_BASE_OFFSET; 148 void __iomem *io_base = bank->lock[0].priv - LOCK_BASE_OFFSET;
@@ -163,7 +163,7 @@ static int omap_hwspinlock_remove(struct platform_device *pdev)
163 163
164static struct platform_driver omap_hwspinlock_driver = { 164static struct platform_driver omap_hwspinlock_driver = {
165 .probe = omap_hwspinlock_probe, 165 .probe = omap_hwspinlock_probe,
166 .remove = omap_hwspinlock_remove, 166 .remove = __devexit_p(omap_hwspinlock_remove),
167 .driver = { 167 .driver = {
168 .name = "omap_hwspinlock", 168 .name = "omap_hwspinlock",
169 .owner = THIS_MODULE, 169 .owner = THIS_MODULE,