spi/mpc5121: change annotations for probe and remove functions
PATCH 1/1 spi/mpc5121: change annotations for probe and remove functions
Change annotations from __init/__exit to __devinit/__devexit to get rid of section mismatch warning.
Signed-off-by Anatolij Gustschin <[email protected]>
--- drivers/spi/mpc512x_psc_spi.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)
drivers/spi/mpc512x_psc_spi.c +8 -8
@@ -405,9 +405,9 @@ static irqreturn_t mpc512x_psc_spi_isr(int irq, void *dev_id) }/* bus_num is used only for the case dev->platform_data == NULL */ -static int __init mpc512x_psc_spi_do_probe (struct device *dev,u32 regaddr, -u32 size,unsigned int irq, -s16 bus_num) +static int __devinit mpc512x_psc_spi_do_probe (struct device *dev,u32 regaddr, +u32 size,unsigned int irq, +s16 bus_num) {struct fsl_spi_platform_data *pdata = dev->platform_data;struct mpc512x_psc_spi *mps;
@@ -490,7 +490,7 @@ free_master:return ret; } -static int __exit mpc512x_psc_spi_do_remove(struct device *dev) +static int __devexit mpc512x_psc_spi_do_remove(struct device *dev) {struct spi_master *master =dev_get_drvdata (dev);struct mpc512x_psc_spi *mps =spi_master_get_devdata (master);
@@ -505,8 +505,8 @@ static int __exit mpc512x_psc_spi_do_remove(struct device *dev)return 0 ; } -static int __init mpc512x_psc_spi_of_probe (struct of_device *op, -const struct of_device_id *match) +static int __devinit mpc512x_psc_spi_of_probe (struct of_device *op, +const struct of_device_id *match) {const u32 *regaddr_p;u64 regaddr64, size64;
@@ -537,7 +537,7 @@ static int __init mpc512x_psc_spi_of_probe(struct of_device *op, irq_of_parse_and_map(op->dev.of_node, 0), id); } -static int __exit mpc512x_psc_spi_of_remove(struct of_device *op) +static int __devexit mpc512x_psc_spi_of_remove(struct of_device *op) {return mpc512x_psc_spi_do_remove (&op->dev); }
@@ -551,7 +551,7 @@ MODULE_DEVICE_TABLE(of, mpc512x_psc_spi_of_match);static struct of_platform_driver mpc512x_psc_spi_of_driver = { .probe = mpc512x_psc_spi_of_probe, - .remove =__exit_p (mpc512x_psc_spi_of_remove), + .remove =__devexit_p (mpc512x_psc_spi_of_remove), .driver = { .name ="mpc512x-psc-spi" , .owner =THIS_MODULE ,
Signature · 7 lines
1.7.0.4 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
A message that is not in the archive (sent off-list or not yet received): 1278325071-28809-1-git-send-email-agust-ynQEQJNshbs@public.gmane.org
Grant Likely
AppliedQuoted 4 lines · Anatolij Gustschin
Change annotations from __init/__exit to __devinit/__devexit to get rid of section mismatch warning.
Signed-off-by Anatolij Gustschin <[email protected]>
Applied, thank you.
Quoted 63 lines
---
drivers/spi/mpc512x_psc_spi.c | 16 ++++++++--------1 files changed, 8 insertions(+), 8 deletions(-)drivers/spi/mpc512x_psc_spi.c +8
-9@@ -405,9 +405,9 @@ static irqreturn_t mpc512x_psc_spi_isr(int irq, void *dev_id) } /* bus_num is used only for the case dev->platform_data == NULL */ -static int __init mpc512x_psc_spi_do_probe (struct device *dev,u32 regaddr, - u32 size, unsigned int irq, - s16 bus_num) +static int __devinit mpc512x_psc_spi_do_probe (struct device *dev,u32 regaddr, + u32 size, unsigned int irq, + s16 bus_num) { struct fsl_spi_platform_data *pdata = dev->platform_data; struct mpc512x_psc_spi *mps;@@ -490,7 +490,7 @@ free_master: return ret; } -static int __exit mpc512x_psc_spi_do_remove(struct device *dev) +static int __devexit mpc512x_psc_spi_do_remove(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); struct mpc512x_psc_spi *mps = spi_master_get_devdata(master);@@ -505,8 +505,8 @@ static int __exit mpc512x_psc_spi_do_remove(struct device *dev) return 0; } -static int __init mpc512x_psc_spi_of_probe (struct of_device *op, - const struct of_device_id *match) +static int __devinit mpc512x_psc_spi_of_probe (struct of_device *op, + const struct of_device_id *match) { const u32 *regaddr_p; u64 regaddr64, size64;@@ -537,7 +537,7 @@ static int __init mpc512x_psc_spi_of_probe(struct of_device *op, irq_of_parse_and_map(op->dev.of_node, 0), id); } -static int __exit mpc512x_psc_spi_of_remove(struct of_device *op) +static int __devexit mpc512x_psc_spi_of_remove(struct of_device *op) { return mpc512x_psc_spi_do_remove(&op->dev); }@@ -551,7 +551,7 @@ MODULE_DEVICE_TABLE(of, mpc512x_psc_spi_of_match); static struct of_platform_driver mpc512x_psc_spi_of_driver = { .probe = mpc512x_psc_spi_of_probe, - .remove = __exit_p(mpc512x_psc_spi_of_remove), + .remove = __devexit_p(mpc512x_psc_spi_of_remove), .driver = { .name = "mpc512x-psc-spi", .owner = THIS_MODULE, --1.7.0.4
Signature · 7 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first