Thanks. Should I have to rebuild kernel when a new spi slave device is added?
Is any non-static way (no need to rebuild kernel) to register spi slave device in driver level? That case I don't have to rebuild kernel, but using driver modules to fill necessary devive info and register driver. ----- Original Message ---- From: andrzej zaborowski <[EMAIL PROTECTED]> To: Jerry Shao <[EMAIL PROTECTED]> Cc: [email protected] Sent: Monday, February 25, 2008 4:38:48 AM Subject: Re: SPI device driver question On 25/02/2008, Jerry Shao <[EMAIL PROTECTED]> wrote: > I am working on FIC phone (gta01) to add a new spi device. The problem is > that the probe function is not invoked when spi_register_driver is called. > Can anyone provide information how to make probe function to be called? > > Looks to me that we have to add the device info (such as name, irq...) in > spi_board_info in mach-gta01.c Can anyone confirm is it right way? Yes, exactly. As with platform_devices, the .name field needs to match that of the driver. Note that the probe function is not invoked immediately when spi_register_driver is called. It will be called later in the boot sequence. Regards -- Please do not print this email unless absolutely necessary. Spread environmental awareness. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

