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>

authored by David Brownell and committed by Linus Torvalds e44a45ae c1a13ff5

+1 -1
+1 -1
drivers/spi/spi.c
··· 411 411 */ 412 412 int spi_register_master(struct spi_master *master) 413 413 { 414 - static atomic_t dyn_bus_id = ATOMIC_INIT((1<<16) - 1); 414 + static atomic_t dyn_bus_id = ATOMIC_INIT((1<<15) - 1); 415 415 struct device *dev = master->cdev.dev; 416 416 int status = -ENODEV; 417 417 int dynamic = 0;