Skip to content

Commit db5cf8d

Browse files
Uwe Kleine-Königtorvalds
authored andcommitted
drivers/rtc/rtc-mc13xxx.c: move probe and remove callbacks to .init.text and .exit.text
The driver is added using platform_driver_probe(), so the callbacks can be discarded more aggessively. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 43fcb81 commit db5cf8d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/rtc/rtc-mc13xxx.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static irqreturn_t mc13xxx_rtc_reset_handler(int irq, void *dev)
309309
return IRQ_HANDLED;
310310
}
311311

312-
static int __devinit mc13xxx_rtc_probe(struct platform_device *pdev)
312+
static int __init mc13xxx_rtc_probe(struct platform_device *pdev)
313313
{
314314
int ret;
315315
struct mc13xxx_rtc *priv;
@@ -378,7 +378,7 @@ static int __devinit mc13xxx_rtc_probe(struct platform_device *pdev)
378378
return ret;
379379
}
380380

381-
static int __devexit mc13xxx_rtc_remove(struct platform_device *pdev)
381+
static int __exit mc13xxx_rtc_remove(struct platform_device *pdev)
382382
{
383383
struct mc13xxx_rtc *priv = platform_get_drvdata(pdev);
384384

@@ -410,7 +410,7 @@ const struct platform_device_id mc13xxx_rtc_idtable[] = {
410410

411411
static struct platform_driver mc13xxx_rtc_driver = {
412412
.id_table = mc13xxx_rtc_idtable,
413-
.remove = __devexit_p(mc13xxx_rtc_remove),
413+
.remove = __exit_p(mc13xxx_rtc_remove),
414414
.driver = {
415415
.name = DRIVER_NAME,
416416
.owner = THIS_MODULE,

0 commit comments

Comments
 (0)