mfd: Fix section mismatch warning for da9052-spi
commit10e55efe0d1d536312906e3685973febf3ecf07b
authorAxel Lin <axel.lin@gmail.com>
Wed, 11 Jan 2012 09:27:16 +0000 (11 17:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 16:13:55 +0000 (13 09:13 -0700)
tree8896109ea2b2ec96a5b2e5ce287c40cfa5059584
parent7edfce8502b19f2183fa81555cc4d0c869a24f47
mfd: Fix section mismatch warning for da9052-spi

commit e536b62095301271d974983044a011c29fcb2ea2 upstream.

Add __devinit annotation for da9052_spi_probe to fix below build warning:

WARNING: drivers/built-in.o(.text+0x349b4): Section mismatch in reference from the function da9052_spi_probe() to the function .devinit.text:da9052_device_init()
The function da9052_spi_probe() references
the function __devinit da9052_device_init().
This is often because da9052_spi_probe lacks a __devinit
annotation or the annotation of da9052_device_init is wrong.

Also add __devexit annotation for da9052_spi_remove because we have
__devexit_p around it in the remove callback.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/da9052-spi.c