staging: unisys: visorchipset: Do not use confuse size of long with size of u32
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 13 Apr 2015 14:28:41 +0000 (10:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Apr 2015 14:33:05 +0000 (16:33 +0200)
commit52063eca7fd04cb4e8a5b8f0d4f99c5e8816d59e
tree9ddf6a789df5a9c20220ed08557fc46fe5cc5a02
parentf4c11551e7109f0d3a4708a149903e4c75e962d2
staging: unisys: visorchipset: Do not use confuse size of long with size of u32

struct visorcipset_device_info defines bus_no and dev_no as u32, while
the deprecated ulong type is 64 bits. Hence avoid promoting the values
to 64 bit just to truncate them again later.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Tested-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/visorchipset.h
drivers/staging/unisys/visorchipset/visorchipset_main.c