09 Jan, 2012

2 commits

  • Remove the const keyword to fix below warning:

    CC drivers/mfd/jz4740-adc.o
    drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_probe':
    drivers/mfd/jz4740-adc.c:290: warning: passing argument 3 of 'mfd_add_devices' discards qualifiers from pointer target type
    include/linux/mfd/core.h:93: note: expected 'struct mfd_cell *' but argument is of type 'const struct mfd_cell *'

    Also make jz4740_adc_cells static, is not used outside
    this driver so no need to make the symbol global.

    Signed-off-by: Axel Lin
    Signed-off-by: Samuel Ortiz

    Axel Lin
     
  • Factors out some boilerplate code for drivers doing the default thing
    for platform driver registration. Drivers using platform_driver_probe
    or an initcall other than module_init can't be converted.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     

21 Dec, 2011

1 commit

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

    CC drivers/mfd/jz4740-adc.o
    drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_irq_demux':
    drivers/mfd/jz4740-adc.c:73: error: implicit declaration of function 'readb'
    drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_set_enabled':
    drivers/mfd/jz4740-adc.c:110: error: implicit declaration of function 'writeb'
    drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_set_config':
    drivers/mfd/jz4740-adc.c:146: error: implicit declaration of function 'readl'
    drivers/mfd/jz4740-adc.c:151: error: implicit declaration of function 'writel'
    drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_probe':
    drivers/mfd/jz4740-adc.c:249: error: implicit declaration of function 'ioremap_nocache'
    drivers/mfd/jz4740-adc.c:249: warning: assignment makes pointer from integer without a cast
    drivers/mfd/jz4740-adc.c:289: warning: passing argument 3 of 'mfd_add_devices' discards qualifiers from pointer target type
    include/linux/mfd/core.h:93: note: expected 'struct mfd_cell *' but argument is of type 'const struct mfd_cell *'
    drivers/mfd/jz4740-adc.c:299: error: implicit declaration of function 'iounmap'
    make[2]: *** [drivers/mfd/jz4740-adc.o] Error 1
    make[1]: *** [drivers/mfd] Error 2
    make: *** [drivers] Error 2

    Signed-off-by: Axel Lin
    Acked-by: Lars-Peter Clausen
    Signed-off-by: Samuel Ortiz

    Axel Lin
     

24 Oct, 2011

1 commit


21 Sep, 2011

1 commit


01 Aug, 2011

1 commit


27 Mar, 2011

1 commit


23 Mar, 2011

1 commit


14 Jan, 2011

1 commit

  • Convert the jz4740-adc driver to use the recently introduced IRQ API
    variants which are passed struct irq_data rather than an IRQ number.

    Signed-off-by: Mark Brown
    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     

29 Oct, 2010

1 commit


12 Aug, 2010

3 commits