]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
rt2x00: rt2800: convert read_eeprom functions to return an int value
authorGabor Juhos <juhosg@openwrt.org>
Sat, 29 Dec 2012 13:51:51 +0000 (14:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:16:54 +0000 (15:16 -0500)
commita02308e931ad0bba19803779bec491c4b2d67b47
treea4b4f475811c87b5e0b0e4b5dff36777b6c085c9
parente1b97c9bc5902ec8b36247bcb7c3552895611485
rt2x00: rt2800: convert read_eeprom functions to return an int value

Both the rtt2x00usb_eeprom_read and the ioremap
functions are allowed to fail, however their
return values are not checked in the read_eeprom
functions in the rt2800{pci,usb} drivers.

The patch adds the missing checks, and converts
all read_eeprom functions to return an int value,
so the error values can be propagated up to the
'rt2800_validate_eeprom' function.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c
drivers/net/wireless/rt2x00/rt2800lib.h
drivers/net/wireless/rt2x00/rt2800pci.c
drivers/net/wireless/rt2x00/rt2800usb.c