19 Oct, 2016

1 commit

  • If the driver is built as a module, autoload won't work because the module
    alias information is not filled so user-space can't match the registered
    device with the corresponding module.

    Export the module alias information using the MODULE_DEVICE_TABLE() macro.

    Before this patch:

    $ modinfo drivers/rtc/rtc-asm9260.ko | grep alias
    $

    After this patch:

    $ modinfo drivers/rtc/rtc-asm9260.ko | grep alias
    alias: of:N*T*Calphascale,asm9260-rtcC*
    alias: of:N*T*Calphascale,asm9260-rtc

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Alexandre Belloni

    Javier Martinez Canillas
     

05 Sep, 2016

1 commit


27 Jul, 2016

1 commit


19 Mar, 2016

1 commit

  • The probe and remove callbacks of the platform driver are marked __init
    and __exit, respectively. However, this is not a correct way to annotate
    them, as it will result in those sections to be discarded at link time
    or after boot, while we can actually call them again based on manual
    unbinding, or deferred probing.

    Kbuild warns about the problem:

    WARNING: drivers/rtc/rtc-asm9260.o(.data+0x0): Section mismatch in reference from the variable asm9260_rtc_driver to the function .init.text:asm9260_rtc_probe()

    This removes the annotations, so we no longer branch into missing
    code and avoid the warning.

    Signed-off-by: Arnd Bergmann
    Fixes: 125e550fd257 ("rtc: add Alphascale asm9260 driver")
    Signed-off-by: Alexandre Belloni

    Arnd Bergmann
     

15 Mar, 2016

1 commit