Commit 872c1b14 authored by Henrik Kretzschmar's avatar Henrik Kretzschmar Committed by Samuel Ortiz

mfd: Section cleanup of 88pm860x driver

This patch fixes three section mismatches.

WARNING: drivers/mfd/88pm860x.o(.text+0x12): Section mismatch in
reference from the function pm860x_device_exit() to the function
.devexit.text:device_irq_exit()
The function pm860x_device_exit() references a function in an exit
section.
Often the function device_irq_exit() has valid usage outside the exit
section
and the fix is to remove the __devexit annotation of device_irq_exit.

WARNING: drivers/mfd/88pm860x.o(.text+0xb0): Section mismatch in
reference from the function pm860x_device_init() to the function
.devinit.text:device_8606_init()
The function pm860x_device_init() references
the function __devinit device_8606_init().
This is often because pm860x_device_init lacks a __devinit
annotation or the annotation of device_8606_init is wrong.

WARNING: drivers/mfd/88pm860x.o(.text+0xbe): Section mismatch in
reference from the function pm860x_device_init() to the function
.devinit.text:device_8607_init()
The function pm860x_device_init() references
the function __devinit device_8607_init().
This is often because pm860x_device_init lacks a __devinit
annotation or the annotation of device_8607_init is wrong.
Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent f03cfcbc
...@@ -566,7 +566,7 @@ static int __devinit device_irq_init(struct pm860x_chip *chip, ...@@ -566,7 +566,7 @@ static int __devinit device_irq_init(struct pm860x_chip *chip,
return ret; return ret;
} }
static void __devexit device_irq_exit(struct pm860x_chip *chip) static void device_irq_exit(struct pm860x_chip *chip)
{ {
if (chip->core_irq) if (chip->core_irq)
free_irq(chip->core_irq, chip); free_irq(chip->core_irq, chip);
...@@ -703,7 +703,7 @@ static void __devinit device_8607_init(struct pm860x_chip *chip, ...@@ -703,7 +703,7 @@ static void __devinit device_8607_init(struct pm860x_chip *chip,
return; return;
} }
int pm860x_device_init(struct pm860x_chip *chip, int __devinit pm860x_device_init(struct pm860x_chip *chip,
struct pm860x_platform_data *pdata) struct pm860x_platform_data *pdata)
{ {
chip->core_irq = 0; chip->core_irq = 0;
...@@ -731,7 +731,7 @@ int pm860x_device_init(struct pm860x_chip *chip, ...@@ -731,7 +731,7 @@ int pm860x_device_init(struct pm860x_chip *chip,
return 0; return 0;
} }
void pm860x_device_exit(struct pm860x_chip *chip) void __devexit pm860x_device_exit(struct pm860x_chip *chip)
{ {
device_irq_exit(chip); device_irq_exit(chip);
mfd_remove_devices(chip->dev); mfd_remove_devices(chip->dev);
......
...@@ -370,7 +370,7 @@ extern int pm860x_set_bits(struct i2c_client *, int, unsigned char, ...@@ -370,7 +370,7 @@ extern int pm860x_set_bits(struct i2c_client *, int, unsigned char,
unsigned char); unsigned char);
extern int pm860x_device_init(struct pm860x_chip *chip, extern int pm860x_device_init(struct pm860x_chip *chip,
struct pm860x_platform_data *pdata); struct pm860x_platform_data *pdata) __devinit ;
extern void pm860x_device_exit(struct pm860x_chip *chip); extern void pm860x_device_exit(struct pm860x_chip *chip) __devexit ;
#endif /* __LINUX_MFD_88PM860X_H */ #endif /* __LINUX_MFD_88PM860X_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment