Skip to content

Commit

Permalink
rtc: rtc-imxdi: add __init/__exit annotation
Browse files Browse the repository at this point in the history
When platform_driver_probe() is used, bind/unbind via sysfs is disabled.
Thus, __init/__exit annotations can be added to probe()/remove().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Apr 30, 2013
1 parent e3c7062 commit 5073cba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/rtc/rtc-imxdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static void dryice_work(struct work_struct *work)
/*
* probe for dryice rtc device
*/
static int dryice_rtc_probe(struct platform_device *pdev)
static int __init dryice_rtc_probe(struct platform_device *pdev)
{
struct resource *res;
struct imxdi_dev *imxdi;
Expand Down Expand Up @@ -479,7 +479,7 @@ static int dryice_rtc_probe(struct platform_device *pdev)
return rc;
}

static int dryice_rtc_remove(struct platform_device *pdev)
static int __exit dryice_rtc_remove(struct platform_device *pdev)
{
struct imxdi_dev *imxdi = platform_get_drvdata(pdev);

Expand Down Expand Up @@ -510,7 +510,7 @@ static struct platform_driver dryice_rtc_driver = {
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(dryice_dt_ids),
},
.remove = dryice_rtc_remove,
.remove = __exit_p(dryice_rtc_remove),
};

static int __init dryice_rtc_init(void)
Expand Down

0 comments on commit 5073cba

Please sign in to comment.