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 +++
> @@ -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, p
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 +++
3 matches
Mail list logo