Commit 9efb4a1b authored by Ohad Ben-Cohen's avatar Ohad Ben-Cohen

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: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent f84a8ecf
...@@ -142,7 +142,7 @@ static int __devinit omap_hwspinlock_probe(struct platform_device *pdev) ...@@ -142,7 +142,7 @@ static int __devinit omap_hwspinlock_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int omap_hwspinlock_remove(struct platform_device *pdev) static int __devexit omap_hwspinlock_remove(struct platform_device *pdev)
{ {
struct hwspinlock_device *bank = platform_get_drvdata(pdev); struct hwspinlock_device *bank = platform_get_drvdata(pdev);
void __iomem *io_base = bank->lock[0].priv - LOCK_BASE_OFFSET; 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,7 +163,7 @@ static int omap_hwspinlock_remove(struct platform_device *pdev)
static struct platform_driver omap_hwspinlock_driver = { static struct platform_driver omap_hwspinlock_driver = {
.probe = omap_hwspinlock_probe, .probe = omap_hwspinlock_probe,
.remove = omap_hwspinlock_remove, .remove = __devexit_p(omap_hwspinlock_remove),
.driver = { .driver = {
.name = "omap_hwspinlock", .name = "omap_hwspinlock",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment