From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from yow.seanm.ca (toronto-hs-216-138-233-67.s-ip.magma.ca [216.138.233.67]) by ozlabs.org (Postfix) with SMTP id 72417DDE2F for ; Tue, 19 Feb 2008 05:28:32 +1100 (EST) Message-ID: <47B9CE4D.1020303@pikatech.com> Date: Mon, 18 Feb 2008 13:28:29 -0500 From: Sean MacLennan MIME-Version: 1.0 To: LinuxPPC-dev Subject: arch_initcall time Content-Type: text/plain; charset=ISO-8859-1; format=flowed List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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); It works, but is there a "better" place to put this? None of the other powerpc platforms make this call and I want to get it right, so that others don't blindly follow my example ;) I kept the name vague rather than specific in case more drivers need to be setup this way in the future. Cheers, Sean