diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-11 04:27:16 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-06 12:46:30 -0500 |
commit | e536b62095301271d974983044a011c29fcb2ea2 (patch) | |
tree | a5d8b77fddc3a12b42b02eb51fc8d5c5c4345422 /drivers/mfd/da9052-spi.c | |
parent | 1039d762d03b573de4d46603c8583051c6d79094 (diff) |
mfd: Fix section mismatch warning for da9052-spi
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>
Diffstat (limited to 'drivers/mfd/da9052-spi.c')
-rw-r--r-- | drivers/mfd/da9052-spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/da9052-spi.c b/drivers/mfd/da9052-spi.c index 76bb9ea0816e..6faf149e8d94 100644 --- a/drivers/mfd/da9052-spi.c +++ b/drivers/mfd/da9052-spi.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #include <linux/mfd/da9052/da9052.h> | 22 | #include <linux/mfd/da9052/da9052.h> |
23 | 23 | ||
24 | static int da9052_spi_probe(struct spi_device *spi) | 24 | static int __devinit da9052_spi_probe(struct spi_device *spi) |
25 | { | 25 | { |
26 | int ret; | 26 | int ret; |
27 | const struct spi_device_id *id = spi_get_device_id(spi); | 27 | const struct spi_device_id *id = spi_get_device_id(spi); |
@@ -63,7 +63,7 @@ err: | |||
63 | return ret; | 63 | return ret; |
64 | } | 64 | } |
65 | 65 | ||
66 | static int da9052_spi_remove(struct spi_device *spi) | 66 | static int __devexit da9052_spi_remove(struct spi_device *spi) |
67 | { | 67 | { |
68 | struct da9052 *da9052 = dev_get_drvdata(&spi->dev); | 68 | struct da9052 *da9052 = dev_get_drvdata(&spi->dev); |
69 | 69 | ||