Re: [spi-devel-general] [PATCH] spi: add bus methods instead of driver's ones

From: David Brownell
Date: Tue Jan 10 2006 - 10:03:54 EST


On Tuesday 10 January 2006 3:47 am, dmitry pervushin wrote:
> The patch below replaces probe/remove/shutdown functions in device_driver
> structure by corresponding methods of spi_bus_type.

> Signed-off-by: dmitry pervushin <dpervushin@xxxxxxxxxxxxx>
> Index: linux-2.6.15.y/drivers/spi/spi.c
> ===================================================================
> --- linux-2.6.15.y.orig/drivers/spi/spi.c
> +++ linux-2.6.15.y/drivers/spi/spi.c
> @@ -125,42 +125,40 @@ struct bus_type spi_bus_type = {
> .dev_attrs = spi_dev_attrs,
> .match = spi_match_device,
> .uevent = spi_uevent,
> + .probe = spi_bus_probe,
> + .remove = spi_bus_remove,
> + .shutdown = spi_bus_shutdown,
> .suspend = spi_suspend,
> .resume = spi_resume,
> };

What kernel are you using here? The one I'm looking at -- GIT snapshot
as of a few minutes ago -- doesn't have probe(), remove(), or shutdown()
methods in "struct bus_type". I don't recall that it ever had such...



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/