[PATCH v2 3/7] i2c-designware-pci: use managed functions pcim_* and devm_*

2013-04-10 Thread Mika Westerberg
From: Andy Shevchenko This makes the error handling much more simpler than open-coding everything and in addition makes the probe function smaller an tidier. Signed-off-by: Andy Shevchenko Signed-off-by: Mika Westerberg --- drivers/i2c/busses/i2c-designware-pcidrv.c | 68

[PATCH v2 3/7] i2c-designware-pci: use managed functions pcim_* and devm_*

2013-04-10 Thread Mika Westerberg
From: Andy Shevchenko andriy.shevche...@linux.intel.com This makes the error handling much more simpler than open-coding everything and in addition makes the probe function smaller an tidier. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Signed-off-by: Mika Westerberg

Re: [3/7] i2c-designware-pci: use managed functions pcim_* and devm_*

2013-04-09 Thread Wolfram Sang
> @@ -296,10 +273,11 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, > snprintf(adap->name, sizeof(adap->name), "i2c-designware-pci-%d", > adap->nr); > > - r = request_irq(pdev->irq, i2c_dw_isr, IRQF_SHARED, adap->name, dev); > + r = devm_request_irq(>dev,

Re: [3/7] i2c-designware-pci: use managed functions pcim_* and devm_*

2013-04-09 Thread Wolfram Sang
@@ -296,10 +273,11 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, snprintf(adap-name, sizeof(adap-name), i2c-designware-pci-%d, adap-nr); - r = request_irq(pdev-irq, i2c_dw_isr, IRQF_SHARED, adap-name, dev); + r = devm_request_irq(pdev-dev, pdev-irq,

[PATCH 3/7] i2c-designware-pci: use managed functions pcim_* and devm_*

2013-03-21 Thread Mika Westerberg
From: Andy Shevchenko This makes the error handling much more simpler than open-coding everything and in addition makes the probe function smaller an tidier. Signed-off-by: Andy Shevchenko Signed-off-by: Mika Westerberg --- drivers/i2c/busses/i2c-designware-pcidrv.c | 68

[PATCH 3/7] i2c-designware-pci: use managed functions pcim_* and devm_*

2013-03-21 Thread Mika Westerberg
From: Andy Shevchenko andriy.shevche...@linux.intel.com This makes the error handling much more simpler than open-coding everything and in addition makes the probe function smaller an tidier. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Signed-off-by: Mika Westerberg