bcma: fix handling of big addrl
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 15 Jul 2013 11:15:08 +0000 (13:15 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:40 +0000 (16:54 -0400)
commitfd4edf197544bae1c77d84bad354aa7ce1d08ce1
tree3a431ba000456c6b76e4417a5764a766dac81743
parent1cabf7dba57011339d7e5a44b2c9829305936372
bcma: fix handling of big addrl

The return value of bcma_erom_get_addr_desc() is a unsigned value and it
could wrap around in the two complement writing. This happens for one
core in the BCM4708 SoC.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/scan.c