[PATCH] i2c: pxa2xx: remove ifdef CONFIG_OF
Grant Likely
grant.likely at secretlab.ca
Sat Mar 26 01:56:14 EST 2011
On Fri, Mar 25, 2011 at 7:38 AM, Sebastian Andrzej Siewior
<bigeasy at linutronix.de> wrote:
> Since commit c9e358d ("driver-core: remove conditionals around
> devicetree pointers") there is no need for CONFIG_OF around of_node and
> of_match_table. Grant removed this ifdefs from all driver which were in
> tree at the time, this one was merged later.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
Acked-by: Grant Likely <grant.likely at secretlab.ca>
This should go via the i2c tree since there are no device tree patches
depending on it.
g.
> ---
> drivers/i2c/busses/i2c-pxa.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
> index f59224a..91c4c15 100644
> --- a/drivers/i2c/busses/i2c-pxa.c
> +++ b/drivers/i2c/busses/i2c-pxa.c
> @@ -1138,9 +1138,7 @@ static int i2c_pxa_probe(struct platform_device *dev)
>
> i2c->adap.algo_data = i2c;
> i2c->adap.dev.parent = &dev->dev;
> -#ifdef CONFIG_OF
> i2c->adap.dev.of_node = dev->dev.of_node;
> -#endif
>
> if (i2c_type == REGS_CE4100)
> ret = i2c_add_adapter(&i2c->adap);
> --
> 1.7.4
>
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
More information about the devicetree-discuss
mailing list