Thread (5 messages) flat view 5 messages, 2 authors, 2007-02-14

New driver model in 2.6

From: DI BACCO ANTONIO - technolabs <hidden>
Date: 2007-02-14 08:29:30

Anyone knows how, where, when the match device of spi_bus_type structure
is called? I put a printk in spi_match_device function and registered an
spi device in this way:

static struct spi_board_info spi_board_info[] __initdata =3D {
        {
                .modalias       =3D "m25p80",
                .max_speed_hz   =3D 16000000,
                .bus_num        =3D 0,
                .chip_select    =3D 0,
        },
};

static int board_init_spi(void)
{
        printk("%s\n", __FUNCTION__);
        spi_register_board_info(spi_board_info,
ARRAY_SIZE(spi_board_info));
        return 0;
}

But spi_match_device is not called and consequently the _probe function
of m25p80 driver is never called.

Any help is appreciated,
Antonio.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help