From: Russell K. <rmk...@ar...> - 2005-10-05 09:01:54
|
On Wed, Oct 05, 2005 at 12:06:37PM +0400, Vitaly Wool wrote: > David, > > >+#ifdef CONFIG_PM > >+ > >+/* Suspend/resume in "struct device_driver" don't really need that > >+ * strange third parameter, so we just make it a constant and expect > >+ * SPI drivers to ignore it just like most platform drivers do. > >+ * > > > > > So you just ignored my letter on that subject :( > The fact that you don't need it doesn't mean that other people won't. > The fact that there's no clean way to suspend USB doesn't mean that > there shouldn't be one for SPI. The third parameter is obsolete and should only be used to select _one_ of the tree suspend calls you will get. Any additional suspend calls should _not_ create extra usage of this parameter. It's a left over from Pat's first driver model incarnation which is specific to the platform device drivers. (Mainly it exists because no one can be bothered to clean it up.) -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core |