[DVB patch 18/48] skystar2: fix MAC address reading

From: Johannes Stezenbach
Date: Mon Mar 21 2005 - 22:48:26 EST


fixed MAC address reading (eeprom address to read, was not correctly set,
respectively overwritten)

Signed-off-by: Johannes Stezenbach <js@xxxxxxxxxxx>

skystar2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.12-rc1-mm1/drivers/media/dvb/b2c2/skystar2.c
===================================================================
--- linux-2.6.12-rc1-mm1.orig/drivers/media/dvb/b2c2/skystar2.c 2005-03-22 00:14:55.000000000 +0100
+++ linux-2.6.12-rc1-mm1/drivers/media/dvb/b2c2/skystar2.c 2005-03-22 00:16:14.000000000 +0100
@@ -231,8 +231,8 @@ static void fixchipaddr(u32 device, u32
{
if (device == 0x20000000)
*ret = bus | ((addr >> 8) & 3);
-
- *ret = bus;
+ else
+ *ret = bus;
}

static u32 flex_i2c_read(struct adapter *adapter, u32 device, u32 bus, u32 addr, u8 *buf, u32 len)

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/