[PATCH 2/2] [POWERPC] pasemi: Register i2c_board_info

David Woodhouse dwmw2 at infradead.org
Wed Dec 5 00:28:46 EST 2007


On Thu, 2007-11-29 at 21:29 -0600, Olof Johansson wrote:
> +                               continue;
> +
> +                       info.addr = *addr;
> +
> +                       i2c_register_board_info(PCI_FUNC(pdev->devfn),
> &info,
> +                                               1);
> +               }
> +       }

+       /* Ensure that buses up to 2 are reserved */
+       i2c_register_board_info(2, NULL, 0);
+


> +       return 0;
> +}
> +device_initcall(pasemi_register_i2c_devices);
> +#endif


Otherwise when you make i2c-pasemi use i2c_add_numbered_adapter(), it
might fail to register the third bus -- because there were no devices
preregistered on it, so something else might have stolen that bus number
already.

You might want to add the patch to use i2c_add_numbered_adapter() to
your tree, btw.

-- 
dwmw2




More information about the Linuxppc-dev mailing list