08 Dec, 2011

1 commit

  • Include linux/module.h to fix below build error:

    CC drivers/spi/spi-nuc900.o
    drivers/spi/spi-nuc900.c:484: error: 'THIS_MODULE' undeclared here (not in a function)
    drivers/spi/spi-nuc900.c:489: error: expected declaration specifiers or '...' before string constant
    drivers/spi/spi-nuc900.c:489: warning: data definition has no type or storage class
    drivers/spi/spi-nuc900.c:489: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
    drivers/spi/spi-nuc900.c:489: warning: function declaration isn't a prototype
    drivers/spi/spi-nuc900.c:490: error: expected declaration specifiers or '...' before string constant
    drivers/spi/spi-nuc900.c:490: warning: data definition has no type or storage class
    drivers/spi/spi-nuc900.c:490: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
    drivers/spi/spi-nuc900.c:490: warning: function declaration isn't a prototype
    drivers/spi/spi-nuc900.c:491: error: expected declaration specifiers or '...' before string constant
    drivers/spi/spi-nuc900.c:491: warning: data definition has no type or storage class
    drivers/spi/spi-nuc900.c:491: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
    drivers/spi/spi-nuc900.c:491: warning: function declaration isn't a prototype
    drivers/spi/spi-nuc900.c:492: error: expected declaration specifiers or '...' before string constant
    drivers/spi/spi-nuc900.c:492: warning: data definition has no type or storage class
    drivers/spi/spi-nuc900.c:492: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS'
    drivers/spi/spi-nuc900.c:492: warning: function declaration isn't a prototype
    make[2]: *** [drivers/spi/spi-nuc900.o] Error 1
    make[1]: *** [drivers/spi] Error 2
    make: *** [drivers] Error 2

    Signed-off-by: Axel Lin
    Acked-by: Paul Gortmaker
    Signed-off-by: Wolfram Sang

    Axel Lin
     

27 Nov, 2011

1 commit


25 Oct, 2011

1 commit

  • For simple modules that contain a single platform_driver without any
    additional setup code then ends up being a block of duplicated
    boilerplate. This patch adds a new macro, module_platform_driver(),
    which replaces the module_init()/module_exit() registrations with
    template functions.

    Signed-off-by: Grant Likely
    Acked-by: Greg Kroah-Hartman
    Reviewed-by: Magnus Damm
    Reviewed-by: Mark Brown
    Reviewed-by: Stephen Boyd

    Grant Likely
     

06 Jun, 2011

1 commit

  • Sort the SPI makefile and enforce the naming convention spi_*.c for
    spi drivers.

    This change also rolls the contents of atmel_spi.h into the .c file
    since there is only one user of that particular include file.

    v2: - Use 'spi-' prefix instead of 'spi_' to match what seems to be
    be the predominant pattern for subsystem prefixes.
    - Clean up filenames in Kconfig and header comment blocks

    Signed-off-by: Grant Likely
    Acked-by: Wolfram Sang
    Acked-by: Linus Walleij

    Grant Likely