diff options
Diffstat (limited to 'drivers/net/arm/ks8695net.c')
-rw-r--r-- | drivers/net/arm/ks8695net.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/arm/ks8695net.c b/drivers/net/arm/ks8695net.c index e7810b74f396..6ec245c6394b 100644 --- a/drivers/net/arm/ks8695net.c +++ b/drivers/net/arm/ks8695net.c | |||
@@ -331,16 +331,16 @@ ks8695_init_partial_multicast(struct ks8695_priv *ksp, | |||
331 | { | 331 | { |
332 | u32 low, high; | 332 | u32 low, high; |
333 | int i; | 333 | int i; |
334 | struct dev_mc_list *dmi; | 334 | struct netdev_hw_addr *ha; |
335 | 335 | ||
336 | i = 0; | 336 | i = 0; |
337 | netdev_for_each_mc_addr(dmi, ndev) { | 337 | netdev_for_each_mc_addr(ha, ndev) { |
338 | /* Ran out of space in chip? */ | 338 | /* Ran out of space in chip? */ |
339 | BUG_ON(i == KS8695_NR_ADDRESSES); | 339 | BUG_ON(i == KS8695_NR_ADDRESSES); |
340 | 340 | ||
341 | low = (dmi->dmi_addr[2] << 24) | (dmi->dmi_addr[3] << 16) | | 341 | low = (ha->addr[2] << 24) | (ha->addr[3] << 16) | |
342 | (dmi->dmi_addr[4] << 8) | (dmi->dmi_addr[5]); | 342 | (ha->addr[4] << 8) | (ha->addr[5]); |
343 | high = (dmi->dmi_addr[0] << 8) | (dmi->dmi_addr[1]); | 343 | high = (ha->addr[0] << 8) | (ha->addr[1]); |
344 | 344 | ||
345 | ks8695_writereg(ksp, KS8695_AAL_(i), low); | 345 | ks8695_writereg(ksp, KS8695_AAL_(i), low); |
346 | ks8695_writereg(ksp, KS8695_AAH_(i), AAH_E | high); | 346 | ks8695_writereg(ksp, KS8695_AAH_(i), AAH_E | high); |