Files
linux/drivers
David Brownell 082c8cb4e5 spi device setup gets better error checking
This updates some error reporting paths in SPI device setup:

 - Move validation logic for SPI chipselects to spi_new_device(),
   which is where it should always have been.

 - In spi_new_device(), emit error messages if the device can't
   be created.  This is LOTS better than a silent failure; though
   eventually, the calling convention should probably change to
   use the <linux/err.h> conventions.

 - Includes one previously-missing check:  SPI masters must always
   have at least one chipselect, even for dedicated busses which
   always keep it selected!

It also adds a FIXME (IDR for dynamic ID allocation) so the issue doesn't live
purely in my mailbox.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-31 15:39:44 -07:00
..
2007-07-31 15:39:39 -07:00
2007-07-29 16:53:59 -07:00
2007-07-18 02:13:42 -07:00
2007-07-31 15:39:39 -07:00
2007-07-31 15:39:43 -07:00
2007-07-31 15:39:44 -07:00
2007-07-21 18:37:12 -07:00
2007-07-16 09:05:40 -07:00
2007-07-16 09:05:42 -07:00
2007-07-31 15:39:39 -07:00
2007-07-26 11:11:57 -07:00
2007-07-31 15:39:40 -07:00
2007-07-21 17:49:17 -07:00
2007-07-26 11:11:56 -07:00
2007-07-31 15:39:42 -07:00
2007-07-20 14:25:51 +10:00
2007-07-31 15:39:37 -07:00
2007-07-29 16:53:59 -07:00
2007-07-31 15:39:39 -07:00
2007-07-31 15:39:42 -07:00
2007-07-31 15:39:39 -07:00
2007-07-18 08:38:22 -07:00
2007-07-18 15:57:16 -07:00
2007-07-31 15:39:41 -07:00
2007-07-26 11:11:57 -07:00
2007-07-26 11:35:17 -07:00
2007-07-20 13:39:59 +10:00