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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux