aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/b2c2/flexcop.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <js@linuxtv.org>2005-05-17 00:54:14 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-17 10:59:25 -0400
commit778241313819e17de3bdf91523c724b4704402c6 (patch)
treeb0638104fbf6de5a6bfec9ed28d55c33f43e3320 /drivers/media/dvb/b2c2/flexcop.c
parent3ed8a31cb387b2ae3e4ca508f973931b61e6f6bd (diff)
[PATCH] dvb: flexcop: fix MAC address reading
read MAC address directly into dvb_adapter->proposed_mac Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/b2c2/flexcop.c')
-rw-r--r--drivers/media/dvb/b2c2/flexcop.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop.c b/drivers/media/dvb/b2c2/flexcop.c
index 1998267207fb..ad590875064b 100644
--- a/drivers/media/dvb/b2c2/flexcop.c
+++ b/drivers/media/dvb/b2c2/flexcop.c
@@ -233,16 +233,18 @@ int flexcop_device_initialize(struct flexcop_device *fc)
233 233
234 flexcop_smc_ctrl(fc, 0); 234 flexcop_smc_ctrl(fc, 0);
235 235
236 if ((ret = flexcop_dvb_init(fc)))
237 goto error;
238
239 /* do the MAC address reading after initializing the dvb_adapter */
236 if (fc->get_mac_addr(fc, 0) == 0) { 240 if (fc->get_mac_addr(fc, 0) == 0) {
237 u8 *b = fc->mac_address; 241 u8 *b = fc->dvb_adapter.proposed_mac;
238 info("MAC address = %02x:%02x:%02x:%02x:%02x:%02x", b[0],b[1],b[2],b[3],b[4],b[5]); 242 info("MAC address = %02x:%02x:%02x:%02x:%02x:%02x", b[0],b[1],b[2],b[3],b[4],b[5]);
239 flexcop_set_mac_filter(fc,fc->mac_address); 243 flexcop_set_mac_filter(fc,b);
240 flexcop_mac_filter_ctrl(fc,1); 244 flexcop_mac_filter_ctrl(fc,1);
241 } else 245 } else
242 warn("reading of MAC address failed.\n"); 246 warn("reading of MAC address failed.\n");
243 247
244 if ((ret = flexcop_dvb_init(fc)))
245 goto error;
246 248
247 if ((ret = flexcop_i2c_init(fc))) 249 if ((ret = flexcop_i2c_init(fc)))
248 goto error; 250 goto error;