arch_initcall time
Grant Likely
grant.likely at secretlab.ca
Tue Feb 19 05:31:19 EST 2008
On Feb 18, 2008 11:28 AM, Sean MacLennan <smaclennan at pikatech.com> wrote:
> I need to call i2c_register_board_info for the new i2c style ad7414
> driver. This needs to be called at arch initcall time. Currently I just
> do this:
>
> static int __init warp_arch_init(void)
> {
> i2c_register_board_info(0, warp_i2c_info, ARRAY_SIZE(warp_i2c_info));
> return 0;
> }
> arch_initcall(warp_arch_init);
Yes, this is the right thing to do, but use machine_arch_initcall()
instead so that it doesn't get called if it is not your board.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
More information about the Linuxppc-dev
mailing list