10 Jan, 2012

3 commits

  • The patch renames puv3_rtcdrv to puv3_rtc_driver, so that modpost will know
    that this is simply a list of pointers to driver functions, in which case
    the section mismatch is OK. (Thanks Michal Marek)

    Cc: Axel Lin
    Cc: Michal Marek
    Cc: Arnd Bergmann
    Cc: Alessandro Zummo
    Cc: rtc-linux@googlegroups.com
    Signed-off-by: Guan Xuetao

    --
    Section mismatch warning information:

    WARNING: drivers/rtc/built-in.o(.data+0x90): Section mismatch in
    reference from the variable puv3_rtcdrv to the
    function .devinit.text:puv3_rtc_probe()
    The variable puv3_rtcdrv references
    the function __devinit puv3_rtc_probe()
    If the reference is valid then annotate the
    variable with __init* or __refdata (see linux/init.h) or name the
    variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
    *_console

    WARNING: drivers/rtc/built-in.o(.data+0x94): Section mismatch in
    reference from the variable puv3_rtcdrv to the
    function .devexit.text:puv3_rtc_remove()
    The variable puv3_rtcdrv references
    the function __devexit puv3_rtc_remove()
    If the reference is valid then annotate the
    variable with __exit* (see linux/init.h) or name the variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
    *_console

    WARNING: drivers/built-in.o(.data+0x6c04): Section mismatch in reference
    from the variable puv3_rtcdrv to the
    function .devinit.text:puv3_rtc_probe()
    The variable puv3_rtcdrv references
    the function __devinit puv3_rtc_probe()
    If the reference is valid then annotate the
    variable with __init* or __refdata (see linux/init.h) or name the
    variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
    *_console

    WARNING: drivers/built-in.o(.data+0x6c08): Section mismatch in reference
    from the variable puv3_rtcdrv to the
    function .devexit.text:puv3_rtc_remove()
    The variable puv3_rtcdrv references
    the function __devexit puv3_rtc_remove()
    If the reference is valid then annotate the
    variable with __exit* (see linux/init.h) or name the variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
    *_console

    WARNING: vmlinux.o(.data+0x1126c): Section mismatch in reference from
    the variable puv3_rtcdrv to the function .devinit.text:puv3_rtc_probe()
    The variable puv3_rtcdrv references
    the function __devinit puv3_rtc_probe()
    If the reference is valid then annotate the
    variable with __init* or __refdata (see linux/init.h) or name the
    variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
    *_console

    WARNING: vmlinux.o(.data+0x11270): Section mismatch in reference from
    the variable puv3_rtcdrv to the function .devexit.text:puv3_rtc_remove()
    The variable puv3_rtcdrv references
    the function __devexit puv3_rtc_remove()
    If the reference is valid then annotate the
    variable with __exit* (see linux/init.h) or name the variable:
    *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
    *_console

    Guan Xuetao
     
  • This patch converts the driver to use the module_platform_driver()
    macro which makes the code smaller and a bit simpler.

    Signed-off-by: Axel Lin
    Signed-off-by: Guan Xuetao

    Guan Xuetao
     
  • This flag is deprecated, so is removed now.

    Signed-off-by: Yong Zhang
    Signed-off-by: Guan Xuetao

    Guan Xuetao
     

15 Nov, 2011

1 commit


10 Jun, 2011

1 commit


09 Jun, 2011

1 commit