[PATCH] i2c: let the core register devices from devicetree
viresh kumar
viresh.linux at gmail.com
Thu Jun 14 03:53:49 EDT 2012
On Wed, Jun 13, 2012 at 10:12 PM, Wolfram Sang <w.sang at pengutronix.de> wrote:
> Currently, every driver has to do it on its own, but it should be done
> in the core, like we already do with board_info structs.
>
> Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
> ---
> diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
> index 0506fef..cf3b23c 100644
> --- a/drivers/i2c/busses/i2c-designware-platdrv.c
> +++ b/drivers/i2c/busses/i2c-designware-platdrv.c
> @@ -147,7 +147,6 @@ static int __devinit dw_i2c_probe(struct platform_device *pdev)
> dev_err(&pdev->dev, "failure adding adapter\n");
> goto err_free_irq;
> }
> - of_i2c_register_devices(adap);
>
> return 0;
For SPEAr,
Reviewed-by: Viresh Kumar <viresh.linux at gmail.com>
More information about the linux-arm-kernel
mailing list