提交 b3b896c7 编写于 作者: M Major Lee 提交者: Linus Torvalds

rtc-mrst: Fix section types

Fix the following section mismatch warning.

  WARNING: drivers/rtc/built-in.o(.data+0xa0): Section mismatch in reference from the variable vrtc_mrst_platform_driver to the function .init.text:vrtc_mrst_platform_probe()
  The variable vrtc_mrst_platform_driver references the function __init vrtc_mrst_platform_probe()
  If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable:
    *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
Signed-off-by: NMajor Lee <major_lee@wistron.com>
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 78fca1b9
...@@ -319,7 +319,7 @@ static irqreturn_t mrst_rtc_irq(int irq, void *p) ...@@ -319,7 +319,7 @@ static irqreturn_t mrst_rtc_irq(int irq, void *p)
return IRQ_NONE; return IRQ_NONE;
} }
static int __init static int __devinit
vrtc_mrst_do_probe(struct device *dev, struct resource *iomem, int rtc_irq) vrtc_mrst_do_probe(struct device *dev, struct resource *iomem, int rtc_irq)
{ {
int retval = 0; int retval = 0;
...@@ -391,7 +391,7 @@ static void rtc_mrst_do_shutdown(void) ...@@ -391,7 +391,7 @@ static void rtc_mrst_do_shutdown(void)
spin_unlock_irq(&rtc_lock); spin_unlock_irq(&rtc_lock);
} }
static void __exit rtc_mrst_do_remove(struct device *dev) static void __devexit rtc_mrst_do_remove(struct device *dev)
{ {
struct mrst_rtc *mrst = dev_get_drvdata(dev); struct mrst_rtc *mrst = dev_get_drvdata(dev);
struct resource *iomem; struct resource *iomem;
...@@ -500,14 +500,14 @@ static inline int mrst_poweroff(struct device *dev) ...@@ -500,14 +500,14 @@ static inline int mrst_poweroff(struct device *dev)
#endif #endif
static int __init vrtc_mrst_platform_probe(struct platform_device *pdev) static int __devinit vrtc_mrst_platform_probe(struct platform_device *pdev)
{ {
return vrtc_mrst_do_probe(&pdev->dev, return vrtc_mrst_do_probe(&pdev->dev,
platform_get_resource(pdev, IORESOURCE_MEM, 0), platform_get_resource(pdev, IORESOURCE_MEM, 0),
platform_get_irq(pdev, 0)); platform_get_irq(pdev, 0));
} }
static int __exit vrtc_mrst_platform_remove(struct platform_device *pdev) static int __devexit vrtc_mrst_platform_remove(struct platform_device *pdev)
{ {
rtc_mrst_do_remove(&pdev->dev); rtc_mrst_do_remove(&pdev->dev);
return 0; return 0;
...@@ -525,7 +525,7 @@ MODULE_ALIAS("platform:vrtc_mrst"); ...@@ -525,7 +525,7 @@ MODULE_ALIAS("platform:vrtc_mrst");
static struct platform_driver vrtc_mrst_platform_driver = { static struct platform_driver vrtc_mrst_platform_driver = {
.probe = vrtc_mrst_platform_probe, .probe = vrtc_mrst_platform_probe,
.remove = __exit_p(vrtc_mrst_platform_remove), .remove = __devexit_p(vrtc_mrst_platform_remove),
.shutdown = vrtc_mrst_platform_shutdown, .shutdown = vrtc_mrst_platform_shutdown,
.driver = { .driver = {
.name = (char *) driver_name, .name = (char *) driver_name,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册