SPI dynamic busid generation bugfix
authorDavid Brownell <david-b@pacbell.net>
Sun, 3 Jun 2007 20:50:40 +0000 (13:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 4 Jun 2007 20:25:09 +0000 (13:25 -0700)
commite44a45ae7b7f7c7a4ebd6aa39b703bf2b97fe848
tree883ba41f63b5c001d28b57ce8fc592a9bb2fa3c7
parentc1a13ff57ab1ce52a0aae9984594dbfcfbaf68c0
SPI dynamic busid generation bugfix

Fix SPI dynamic bus ID assignment to start at 2^15-1 rather than a negative
number.  Valid bus ids are supposed to be positive, and are (now) stored in
an 's16' value.

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>
drivers/spi/spi.c