Skip to content

Commit

Permalink
Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/…
Browse files Browse the repository at this point in the history
…wsa/linux

Pull i2c __dev* attribute removal from Wolfram Sang:
 "The squashed patches from Bill to get rid of the __dev* annotations in
  the i2c subsystem.  I couldn't include it in my previous pull request
  due to some dependency with the mfd subsystem.  I had this patch in
  linux-next for two days before rc1 and nothing popped up."

* 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux:
  i2c: remove __dev* attributes from subsystem
  • Loading branch information
torvalds committed Dec 23, 2012
2 parents 4ae0a48 + 0b255e9 commit 637704c
Show file tree
Hide file tree
Showing 54 changed files with 241 additions and 247 deletions.
8 changes: 4 additions & 4 deletions drivers/i2c/busses/i2c-ali1535.c
Expand Up @@ -139,7 +139,7 @@ static unsigned short ali1535_offset;
Note the differences between kernels with the old PCI BIOS interface and Note the differences between kernels with the old PCI BIOS interface and
newer kernels with the real PCI interface. In compat.h some things are newer kernels with the real PCI interface. In compat.h some things are
defined to make the transition easier. */ defined to make the transition easier. */
static int __devinit ali1535_setup(struct pci_dev *dev) static int ali1535_setup(struct pci_dev *dev)
{ {
int retval; int retval;
unsigned char temp; unsigned char temp;
Expand Down Expand Up @@ -502,7 +502,7 @@ static DEFINE_PCI_DEVICE_TABLE(ali1535_ids) = {


MODULE_DEVICE_TABLE(pci, ali1535_ids); MODULE_DEVICE_TABLE(pci, ali1535_ids);


static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id) static int ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id)
{ {
if (ali1535_setup(dev)) { if (ali1535_setup(dev)) {
dev_warn(&dev->dev, dev_warn(&dev->dev,
Expand All @@ -518,7 +518,7 @@ static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_
return i2c_add_adapter(&ali1535_adapter); return i2c_add_adapter(&ali1535_adapter);
} }


static void __devexit ali1535_remove(struct pci_dev *dev) static void ali1535_remove(struct pci_dev *dev)
{ {
i2c_del_adapter(&ali1535_adapter); i2c_del_adapter(&ali1535_adapter);
release_region(ali1535_smba, ALI1535_SMB_IOSIZE); release_region(ali1535_smba, ALI1535_SMB_IOSIZE);
Expand All @@ -528,7 +528,7 @@ static struct pci_driver ali1535_driver = {
.name = "ali1535_smbus", .name = "ali1535_smbus",
.id_table = ali1535_ids, .id_table = ali1535_ids,
.probe = ali1535_probe, .probe = ali1535_probe,
.remove = __devexit_p(ali1535_remove), .remove = ali1535_remove,
}; };


module_pci_driver(ali1535_driver); module_pci_driver(ali1535_driver);
Expand Down
10 changes: 5 additions & 5 deletions drivers/i2c/busses/i2c-ali1563.c
Expand Up @@ -326,7 +326,7 @@ static u32 ali1563_func(struct i2c_adapter * a)
} }




static int __devinit ali1563_setup(struct pci_dev * dev) static int ali1563_setup(struct pci_dev *dev)
{ {
u16 ctrl; u16 ctrl;


Expand Down Expand Up @@ -390,8 +390,8 @@ static struct i2c_adapter ali1563_adapter = {
.algo = &ali1563_algorithm, .algo = &ali1563_algorithm,
}; };


static int __devinit ali1563_probe(struct pci_dev * dev, static int ali1563_probe(struct pci_dev *dev,
const struct pci_device_id * id_table) const struct pci_device_id *id_table)
{ {
int error; int error;


Expand All @@ -411,7 +411,7 @@ static int __devinit ali1563_probe(struct pci_dev * dev,
return error; return error;
} }


static void __devexit ali1563_remove(struct pci_dev * dev) static void ali1563_remove(struct pci_dev *dev)
{ {
i2c_del_adapter(&ali1563_adapter); i2c_del_adapter(&ali1563_adapter);
ali1563_shutdown(dev); ali1563_shutdown(dev);
Expand All @@ -428,7 +428,7 @@ static struct pci_driver ali1563_pci_driver = {
.name = "ali1563_smbus", .name = "ali1563_smbus",
.id_table = ali1563_id_table, .id_table = ali1563_id_table,
.probe = ali1563_probe, .probe = ali1563_probe,
.remove = __devexit_p(ali1563_remove), .remove = ali1563_remove,
}; };


module_pci_driver(ali1563_pci_driver); module_pci_driver(ali1563_pci_driver);
Expand Down
8 changes: 4 additions & 4 deletions drivers/i2c/busses/i2c-ali15x3.c
Expand Up @@ -131,7 +131,7 @@ MODULE_PARM_DESC(force_addr,
static struct pci_driver ali15x3_driver; static struct pci_driver ali15x3_driver;
static unsigned short ali15x3_smba; static unsigned short ali15x3_smba;


static int __devinit ali15x3_setup(struct pci_dev *ALI15X3_dev) static int ali15x3_setup(struct pci_dev *ALI15X3_dev)
{ {
u16 a; u16 a;
unsigned char temp; unsigned char temp;
Expand Down Expand Up @@ -484,7 +484,7 @@ static DEFINE_PCI_DEVICE_TABLE(ali15x3_ids) = {


MODULE_DEVICE_TABLE (pci, ali15x3_ids); MODULE_DEVICE_TABLE (pci, ali15x3_ids);


static int __devinit ali15x3_probe(struct pci_dev *dev, const struct pci_device_id *id) static int ali15x3_probe(struct pci_dev *dev, const struct pci_device_id *id)
{ {
if (ali15x3_setup(dev)) { if (ali15x3_setup(dev)) {
dev_err(&dev->dev, dev_err(&dev->dev,
Expand All @@ -500,7 +500,7 @@ static int __devinit ali15x3_probe(struct pci_dev *dev, const struct pci_device_
return i2c_add_adapter(&ali15x3_adapter); return i2c_add_adapter(&ali15x3_adapter);
} }


static void __devexit ali15x3_remove(struct pci_dev *dev) static void ali15x3_remove(struct pci_dev *dev)
{ {
i2c_del_adapter(&ali15x3_adapter); i2c_del_adapter(&ali15x3_adapter);
release_region(ali15x3_smba, ALI15X3_SMB_IOSIZE); release_region(ali15x3_smba, ALI15X3_SMB_IOSIZE);
Expand All @@ -510,7 +510,7 @@ static struct pci_driver ali15x3_driver = {
.name = "ali15x3_smbus", .name = "ali15x3_smbus",
.id_table = ali15x3_ids, .id_table = ali15x3_ids,
.probe = ali15x3_probe, .probe = ali15x3_probe,
.remove = __devexit_p(ali15x3_remove), .remove = ali15x3_remove,
}; };


module_pci_driver(ali15x3_driver); module_pci_driver(ali15x3_driver);
Expand Down
7 changes: 3 additions & 4 deletions drivers/i2c/busses/i2c-amd756.c
Expand Up @@ -324,8 +324,7 @@ static DEFINE_PCI_DEVICE_TABLE(amd756_ids) = {


MODULE_DEVICE_TABLE (pci, amd756_ids); MODULE_DEVICE_TABLE (pci, amd756_ids);


static int __devinit amd756_probe(struct pci_dev *pdev, static int amd756_probe(struct pci_dev *pdev, const struct pci_device_id *id)
const struct pci_device_id *id)
{ {
int nforce = (id->driver_data == NFORCE); int nforce = (id->driver_data == NFORCE);
int error; int error;
Expand Down Expand Up @@ -397,7 +396,7 @@ static int __devinit amd756_probe(struct pci_dev *pdev,
return error; return error;
} }


static void __devexit amd756_remove(struct pci_dev *dev) static void amd756_remove(struct pci_dev *dev)
{ {
i2c_del_adapter(&amd756_smbus); i2c_del_adapter(&amd756_smbus);
release_region(amd756_ioport, SMB_IOSIZE); release_region(amd756_ioport, SMB_IOSIZE);
Expand All @@ -407,7 +406,7 @@ static struct pci_driver amd756_driver = {
.name = "amd756_smbus", .name = "amd756_smbus",
.id_table = amd756_ids, .id_table = amd756_ids,
.probe = amd756_probe, .probe = amd756_probe,
.remove = __devexit_p(amd756_remove), .remove = amd756_remove,
}; };


module_pci_driver(amd756_driver); module_pci_driver(amd756_driver);
Expand Down
7 changes: 3 additions & 4 deletions drivers/i2c/busses/i2c-amd8111.c
Expand Up @@ -422,8 +422,7 @@ static DEFINE_PCI_DEVICE_TABLE(amd8111_ids) = {


MODULE_DEVICE_TABLE (pci, amd8111_ids); MODULE_DEVICE_TABLE (pci, amd8111_ids);


static int __devinit amd8111_probe(struct pci_dev *dev, static int amd8111_probe(struct pci_dev *dev, const struct pci_device_id *id)
const struct pci_device_id *id)
{ {
struct amd_smbus *smbus; struct amd_smbus *smbus;
int error; int error;
Expand Down Expand Up @@ -475,7 +474,7 @@ static int __devinit amd8111_probe(struct pci_dev *dev,
return error; return error;
} }


static void __devexit amd8111_remove(struct pci_dev *dev) static void amd8111_remove(struct pci_dev *dev)
{ {
struct amd_smbus *smbus = pci_get_drvdata(dev); struct amd_smbus *smbus = pci_get_drvdata(dev);


Expand All @@ -488,7 +487,7 @@ static struct pci_driver amd8111_driver = {
.name = "amd8111_smbus2", .name = "amd8111_smbus2",
.id_table = amd8111_ids, .id_table = amd8111_ids,
.probe = amd8111_probe, .probe = amd8111_probe,
.remove = __devexit_p(amd8111_remove), .remove = amd8111_remove,
}; };


module_pci_driver(amd8111_driver); module_pci_driver(amd8111_driver);
14 changes: 7 additions & 7 deletions drivers/i2c/busses/i2c-at91.c
Expand Up @@ -145,7 +145,7 @@ static void at91_init_twi_bus(struct at91_twi_dev *dev)
* Calculate symmetric clock as stated in datasheet: * Calculate symmetric clock as stated in datasheet:
* twi_clk = F_MAIN / (2 * (cdiv * (1 << ckdiv) + offset)) * twi_clk = F_MAIN / (2 * (cdiv * (1 << ckdiv) + offset))
*/ */
static void __devinit at91_calc_twi_clock(struct at91_twi_dev *dev, int twi_clk) static void at91_calc_twi_clock(struct at91_twi_dev *dev, int twi_clk)
{ {
int ckdiv, cdiv, div; int ckdiv, cdiv, div;
struct at91_twi_pdata *pdata = dev->pdata; struct at91_twi_pdata *pdata = dev->pdata;
Expand Down Expand Up @@ -604,7 +604,7 @@ MODULE_DEVICE_TABLE(of, atmel_twi_dt_ids);
#define atmel_twi_dt_ids NULL #define atmel_twi_dt_ids NULL
#endif #endif


static bool __devinit filter(struct dma_chan *chan, void *slave) static bool filter(struct dma_chan *chan, void *slave)
{ {
struct at_dma_slave *sl = slave; struct at_dma_slave *sl = slave;


Expand All @@ -616,7 +616,7 @@ static bool __devinit filter(struct dma_chan *chan, void *slave)
} }
} }


static int __devinit at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr) static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr)
{ {
int ret = 0; int ret = 0;
struct at_dma_slave *sdata; struct at_dma_slave *sdata;
Expand Down Expand Up @@ -688,7 +688,7 @@ static int __devinit at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_ad
return ret; return ret;
} }


static struct at91_twi_pdata * __devinit at91_twi_get_driver_data( static struct at91_twi_pdata *at91_twi_get_driver_data(
struct platform_device *pdev) struct platform_device *pdev)
{ {
if (pdev->dev.of_node) { if (pdev->dev.of_node) {
Expand All @@ -701,7 +701,7 @@ static struct at91_twi_pdata * __devinit at91_twi_get_driver_data(
return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data; return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data;
} }


static int __devinit at91_twi_probe(struct platform_device *pdev) static int at91_twi_probe(struct platform_device *pdev)
{ {
struct at91_twi_dev *dev; struct at91_twi_dev *dev;
struct resource *mem; struct resource *mem;
Expand Down Expand Up @@ -779,7 +779,7 @@ static int __devinit at91_twi_probe(struct platform_device *pdev)
return 0; return 0;
} }


static int __devexit at91_twi_remove(struct platform_device *pdev) static int at91_twi_remove(struct platform_device *pdev)
{ {
struct at91_twi_dev *dev = platform_get_drvdata(pdev); struct at91_twi_dev *dev = platform_get_drvdata(pdev);
int rc; int rc;
Expand Down Expand Up @@ -820,7 +820,7 @@ static const struct dev_pm_ops at91_twi_pm = {


static struct platform_driver at91_twi_driver = { static struct platform_driver at91_twi_driver = {
.probe = at91_twi_probe, .probe = at91_twi_probe,
.remove = __devexit_p(at91_twi_remove), .remove = at91_twi_remove,
.id_table = at91_twi_devtypes, .id_table = at91_twi_devtypes,
.driver = { .driver = {
.name = "at91_i2c", .name = "at91_i2c",
Expand Down
6 changes: 3 additions & 3 deletions drivers/i2c/busses/i2c-au1550.c
Expand Up @@ -313,7 +313,7 @@ static void i2c_au1550_disable(struct i2c_au1550_data *priv)
* Prior to calling us, the 50MHz clock frequency and routing * Prior to calling us, the 50MHz clock frequency and routing
* must have been set up for the PSC indicated by the adapter. * must have been set up for the PSC indicated by the adapter.
*/ */
static int __devinit static int
i2c_au1550_probe(struct platform_device *pdev) i2c_au1550_probe(struct platform_device *pdev)
{ {
struct i2c_au1550_data *priv; struct i2c_au1550_data *priv;
Expand Down Expand Up @@ -372,7 +372,7 @@ i2c_au1550_probe(struct platform_device *pdev)
return ret; return ret;
} }


static int __devexit i2c_au1550_remove(struct platform_device *pdev) static int i2c_au1550_remove(struct platform_device *pdev)
{ {
struct i2c_au1550_data *priv = platform_get_drvdata(pdev); struct i2c_au1550_data *priv = platform_get_drvdata(pdev);


Expand Down Expand Up @@ -423,7 +423,7 @@ static struct platform_driver au1xpsc_smbus_driver = {
.pm = AU1XPSC_SMBUS_PMOPS, .pm = AU1XPSC_SMBUS_PMOPS,
}, },
.probe = i2c_au1550_probe, .probe = i2c_au1550_probe,
.remove = __devexit_p(i2c_au1550_remove), .remove = i2c_au1550_remove,
}; };


module_platform_driver(au1xpsc_smbus_driver); module_platform_driver(au1xpsc_smbus_driver);
Expand Down
8 changes: 4 additions & 4 deletions drivers/i2c/busses/i2c-cpm.c
Expand Up @@ -426,7 +426,7 @@ static const struct i2c_adapter cpm_ops = {
.algo = &cpm_i2c_algo, .algo = &cpm_i2c_algo,
}; };


static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm) static int cpm_i2c_setup(struct cpm_i2c *cpm)
{ {
struct platform_device *ofdev = cpm->ofdev; struct platform_device *ofdev = cpm->ofdev;
const u32 *data; const u32 *data;
Expand Down Expand Up @@ -634,7 +634,7 @@ static void cpm_i2c_shutdown(struct cpm_i2c *cpm)
cpm_muram_free(cpm->i2c_addr); cpm_muram_free(cpm->i2c_addr);
} }


static int __devinit cpm_i2c_probe(struct platform_device *ofdev) static int cpm_i2c_probe(struct platform_device *ofdev)
{ {
int result, len; int result, len;
struct cpm_i2c *cpm; struct cpm_i2c *cpm;
Expand Down Expand Up @@ -688,7 +688,7 @@ static int __devinit cpm_i2c_probe(struct platform_device *ofdev)
return result; return result;
} }


static int __devexit cpm_i2c_remove(struct platform_device *ofdev) static int cpm_i2c_remove(struct platform_device *ofdev)
{ {
struct cpm_i2c *cpm = dev_get_drvdata(&ofdev->dev); struct cpm_i2c *cpm = dev_get_drvdata(&ofdev->dev);


Expand Down Expand Up @@ -716,7 +716,7 @@ MODULE_DEVICE_TABLE(of, cpm_i2c_match);


static struct platform_driver cpm_i2c_driver = { static struct platform_driver cpm_i2c_driver = {
.probe = cpm_i2c_probe, .probe = cpm_i2c_probe,
.remove = __devexit_p(cpm_i2c_remove), .remove = cpm_i2c_remove,
.driver = { .driver = {
.name = "fsl-i2c-cpm", .name = "fsl-i2c-cpm",
.owner = THIS_MODULE, .owner = THIS_MODULE,
Expand Down
6 changes: 3 additions & 3 deletions drivers/i2c/busses/i2c-designware-pcidrv.c
Expand Up @@ -207,7 +207,7 @@ static u32 i2c_dw_get_clk_rate_khz(struct dw_i2c_dev *dev)
return dev->controller->clk_khz; return dev->controller->clk_khz;
} }


static int __devinit i2c_dw_pci_probe(struct pci_dev *pdev, static int i2c_dw_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id) const struct pci_device_id *id)
{ {
struct dw_i2c_dev *dev; struct dw_i2c_dev *dev;
Expand Down Expand Up @@ -328,7 +328,7 @@ const struct pci_device_id *id)
return r; return r;
} }


static void __devexit i2c_dw_pci_remove(struct pci_dev *pdev) static void i2c_dw_pci_remove(struct pci_dev *pdev)
{ {
struct dw_i2c_dev *dev = pci_get_drvdata(pdev); struct dw_i2c_dev *dev = pci_get_drvdata(pdev);


Expand Down Expand Up @@ -368,7 +368,7 @@ static struct pci_driver dw_i2c_driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.id_table = i2_designware_pci_ids, .id_table = i2_designware_pci_ids,
.probe = i2c_dw_pci_probe, .probe = i2c_dw_pci_probe,
.remove = __devexit_p(i2c_dw_pci_remove), .remove = i2c_dw_pci_remove,
.driver = { .driver = {
.pm = &i2c_dw_pm_ops, .pm = &i2c_dw_pm_ops,
}, },
Expand Down
6 changes: 3 additions & 3 deletions drivers/i2c/busses/i2c-designware-platdrv.c
Expand Up @@ -50,7 +50,7 @@ static u32 i2c_dw_get_clk_rate_khz(struct dw_i2c_dev *dev)
return clk_get_rate(dev->clk)/1000; return clk_get_rate(dev->clk)/1000;
} }


static int __devinit dw_i2c_probe(struct platform_device *pdev) static int dw_i2c_probe(struct platform_device *pdev)
{ {
struct dw_i2c_dev *dev; struct dw_i2c_dev *dev;
struct i2c_adapter *adap; struct i2c_adapter *adap;
Expand Down Expand Up @@ -169,7 +169,7 @@ static int __devinit dw_i2c_probe(struct platform_device *pdev)
return r; return r;
} }


static int __devexit dw_i2c_remove(struct platform_device *pdev) static int dw_i2c_remove(struct platform_device *pdev)
{ {
struct dw_i2c_dev *dev = platform_get_drvdata(pdev); struct dw_i2c_dev *dev = platform_get_drvdata(pdev);
struct resource *mem; struct resource *mem;
Expand Down Expand Up @@ -228,7 +228,7 @@ static SIMPLE_DEV_PM_OPS(dw_i2c_dev_pm_ops, dw_i2c_suspend, dw_i2c_resume);
MODULE_ALIAS("platform:i2c_designware"); MODULE_ALIAS("platform:i2c_designware");


static struct platform_driver dw_i2c_driver = { static struct platform_driver dw_i2c_driver = {
.remove = __devexit_p(dw_i2c_remove), .remove = dw_i2c_remove,
.driver = { .driver = {
.name = "i2c_designware", .name = "i2c_designware",
.owner = THIS_MODULE, .owner = THIS_MODULE,
Expand Down
6 changes: 3 additions & 3 deletions drivers/i2c/busses/i2c-eg20t.c
Expand Up @@ -758,7 +758,7 @@ static void pch_i2c_disbl_int(struct i2c_algo_pch_data *adap)
iowrite32(BUFFER_MODE_INTR_DISBL, p + PCH_I2CBUFMSK); iowrite32(BUFFER_MODE_INTR_DISBL, p + PCH_I2CBUFMSK);
} }


static int __devinit pch_i2c_probe(struct pci_dev *pdev, static int pch_i2c_probe(struct pci_dev *pdev,
const struct pci_device_id *id) const struct pci_device_id *id)
{ {
void __iomem *base_addr; void __iomem *base_addr;
Expand Down Expand Up @@ -851,7 +851,7 @@ static int __devinit pch_i2c_probe(struct pci_dev *pdev,
return ret; return ret;
} }


static void __devexit pch_i2c_remove(struct pci_dev *pdev) static void pch_i2c_remove(struct pci_dev *pdev)
{ {
int i; int i;
struct adapter_info *adap_info = pci_get_drvdata(pdev); struct adapter_info *adap_info = pci_get_drvdata(pdev);
Expand Down Expand Up @@ -948,7 +948,7 @@ static struct pci_driver pch_pcidriver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.id_table = pch_pcidev_id, .id_table = pch_pcidev_id,
.probe = pch_i2c_probe, .probe = pch_i2c_probe,
.remove = __devexit_p(pch_i2c_remove), .remove = pch_i2c_remove,
.suspend = pch_i2c_suspend, .suspend = pch_i2c_suspend,
.resume = pch_i2c_resume .resume = pch_i2c_resume
}; };
Expand Down

0 comments on commit 637704c

Please sign in to comment.