r8152: remove sram_read
authorhayeswang <hayeswang@realtek.com>
Mon, 19 Jan 2015 09:02:46 +0000 (17:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jan 2015 21:16:32 +0000 (16:16 -0500)
commitb4d99def09389ab696a5c85db58124fe0f16d590
tree6f2c6e93ea7863afa5ab4ea19d9ab74db1184816
parent8cb3db24c80958647f8a1b65e4968f9f043ffc3d
r8152: remove sram_read

Read OCP register 0xa43a~0xa43b would clear some flags which the hw
would use, and it may let the device lost. However, the unit of
reading is 4 bytes. That is, it would read 0xa438~0xa43b when calling
sram_read() to read OCP_SRAM_DATA.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c