diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-27 15:59:38 -0500 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-12-22 14:13:45 -0500 |
commit | 0b255e927d47b550620dfd3475ee74b0f52e09c8 (patch) | |
tree | 79927f5e46b3a196f90c2b93494bb88c35ad06ea /drivers/i2c/busses/i2c-at91.c | |
parent | a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff) |
i2c: remove __dev* attributes from subsystem
CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.
Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Acked-by: Peter Korsgaard <peter.korsgaard@barco.com> (for ocores and mux-gpio)
Acked-by: Havard Skinnemoen <hskinnemoen@gmail.com> (for i2c-gpio)
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> (for puf3)
Acked-by: Barry Song <baohua.song@csr.com> (for sirf)
Reviewed-by: Jean Delvare <khali@linux-fr.org>
[wsa: Fixed "foo* bar" flaws while we are here]
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-at91.c')
-rw-r--r-- | drivers/i2c/busses/i2c-at91.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index b4575ee4bdf3..2bfc04d0a1b1 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c | |||
@@ -145,7 +145,7 @@ static void at91_init_twi_bus(struct at91_twi_dev *dev) | |||
145 | * Calculate symmetric clock as stated in datasheet: | 145 | * Calculate symmetric clock as stated in datasheet: |
146 | * twi_clk = F_MAIN / (2 * (cdiv * (1 << ckdiv) + offset)) | 146 | * twi_clk = F_MAIN / (2 * (cdiv * (1 << ckdiv) + offset)) |
147 | */ | 147 | */ |
148 | static void __devinit at91_calc_twi_clock(struct at91_twi_dev *dev, int twi_clk) | 148 | static void at91_calc_twi_clock(struct at91_twi_dev *dev, int twi_clk) |
149 | { | 149 | { |
150 | int ckdiv, cdiv, div; | 150 | int ckdiv, cdiv, div; |
151 | struct at91_twi_pdata *pdata = dev->pdata; | 151 | struct at91_twi_pdata *pdata = dev->pdata; |
@@ -604,7 +604,7 @@ MODULE_DEVICE_TABLE(of, atmel_twi_dt_ids); | |||
604 | #define atmel_twi_dt_ids NULL | 604 | #define atmel_twi_dt_ids NULL |
605 | #endif | 605 | #endif |
606 | 606 | ||
607 | static bool __devinit filter(struct dma_chan *chan, void *slave) | 607 | static bool filter(struct dma_chan *chan, void *slave) |
608 | { | 608 | { |
609 | struct at_dma_slave *sl = slave; | 609 | struct at_dma_slave *sl = slave; |
610 | 610 | ||
@@ -616,7 +616,7 @@ static bool __devinit filter(struct dma_chan *chan, void *slave) | |||
616 | } | 616 | } |
617 | } | 617 | } |
618 | 618 | ||
619 | static int __devinit at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr) | 619 | static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr) |
620 | { | 620 | { |
621 | int ret = 0; | 621 | int ret = 0; |
622 | struct at_dma_slave *sdata; | 622 | struct at_dma_slave *sdata; |
@@ -688,7 +688,7 @@ error: | |||
688 | return ret; | 688 | return ret; |
689 | } | 689 | } |
690 | 690 | ||
691 | static struct at91_twi_pdata * __devinit at91_twi_get_driver_data( | 691 | static struct at91_twi_pdata *at91_twi_get_driver_data( |
692 | struct platform_device *pdev) | 692 | struct platform_device *pdev) |
693 | { | 693 | { |
694 | if (pdev->dev.of_node) { | 694 | if (pdev->dev.of_node) { |
@@ -701,7 +701,7 @@ static struct at91_twi_pdata * __devinit at91_twi_get_driver_data( | |||
701 | return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data; | 701 | return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data; |
702 | } | 702 | } |
703 | 703 | ||
704 | static int __devinit at91_twi_probe(struct platform_device *pdev) | 704 | static int at91_twi_probe(struct platform_device *pdev) |
705 | { | 705 | { |
706 | struct at91_twi_dev *dev; | 706 | struct at91_twi_dev *dev; |
707 | struct resource *mem; | 707 | struct resource *mem; |
@@ -779,7 +779,7 @@ static int __devinit at91_twi_probe(struct platform_device *pdev) | |||
779 | return 0; | 779 | return 0; |
780 | } | 780 | } |
781 | 781 | ||
782 | static int __devexit at91_twi_remove(struct platform_device *pdev) | 782 | static int at91_twi_remove(struct platform_device *pdev) |
783 | { | 783 | { |
784 | struct at91_twi_dev *dev = platform_get_drvdata(pdev); | 784 | struct at91_twi_dev *dev = platform_get_drvdata(pdev); |
785 | int rc; | 785 | int rc; |
@@ -820,7 +820,7 @@ static const struct dev_pm_ops at91_twi_pm = { | |||
820 | 820 | ||
821 | static struct platform_driver at91_twi_driver = { | 821 | static struct platform_driver at91_twi_driver = { |
822 | .probe = at91_twi_probe, | 822 | .probe = at91_twi_probe, |
823 | .remove = __devexit_p(at91_twi_remove), | 823 | .remove = at91_twi_remove, |
824 | .id_table = at91_twi_devtypes, | 824 | .id_table = at91_twi_devtypes, |
825 | .driver = { | 825 | .driver = { |
826 | .name = "at91_i2c", | 826 | .name = "at91_i2c", |