[PATCH 9/13] powerpc: Add arch/powerpc mv64x60 I2C platform data setup

Arnd Bergmann arnd at arndb.de
Thu Apr 26 10:21:19 EST 2007


On Thursday 26 April 2007, Mark A. Greer wrote:
> +static int __init mv64x60_i2c_platform_device_init(void)
> +{
> +       struct device_node *np = NULL;
> +       int i;
> +       struct platform_device *pdev;
> +       int err;
> +
> +       for (i = 0;
> +            (np = of_find_compatible_node(np, "i2c", "mv64x60-i2c"));

Same comment as about the ethernet driver: You should register an
of_platform_driver from drivers/i2c/busses/i2c-mv64xxx.c.

Repeat after me: 

I will not call of_find_compatible_node() from device drivers.
I will not call of_find_compatible_node() from device drivers.
I will not call of_find_compatible_node() from device drivers.

	Arnd <><



More information about the Linuxppc-dev mailing list