Skip to content

Commit

Permalink
hwspinlock/omap: omap_hwspinlock_remove should be __devexit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ohadbc committed Sep 21, 2011
1 parent f84a8ec commit 9efb4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hwspinlock/omap_hwspinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int __devinit omap_hwspinlock_probe(struct platform_device *pdev)
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);
void __iomem *io_base = bank->lock[0].priv - LOCK_BASE_OFFSET;
Expand All @@ -163,7 +163,7 @@ static int omap_hwspinlock_remove(struct platform_device *pdev)

static struct platform_driver omap_hwspinlock_driver = {
.probe = omap_hwspinlock_probe,
.remove = omap_hwspinlock_remove,
.remove = __devexit_p(omap_hwspinlock_remove),
.driver = {
.name = "omap_hwspinlock",
.owner = THIS_MODULE,
Expand Down

0 comments on commit 9efb4a1

Please sign in to comment.