]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: Do not use 0 as the default bus root device number
authorDon Zickus <dzickus@redhat.com>
Thu, 4 Jun 2015 13:22:40 +0000 (09:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 20:36:43 +0000 (13:36 -0700)
commit4bc896ae4c80a4b89d1ec220e225b1ab9b27d2fc
tree24dd128a7a18e09cc1101562c0396af243e60cf7
parent9433c4f8210808f5f8139d0b3513a721a75c1454
staging: unisys: Do not use 0 as the default bus root device number

I used 0 as the device id for the bus root, neglecting the fact that
device 0 is a valid id in Unisys's configuration.  Modify this to
use UINT_MAX instead as a unique number.

As fallout from this change it was noticed the bus_no and dev_no was not
defined the same way consistently.  Fix visorbus.h to use u32 there.  Fix
the resulting printk warning too.

Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/visorbus.h
drivers/staging/unisys/visorbus/visorbus_main.c
drivers/staging/unisys/visorbus/visorchipset.c