rt2x00: Corectly initialize rt2500usb MAC
authorIvo van Doorn <ivdoorn@gmail.com>
Wed, 9 Jan 2008 18:18:25 +0000 (19:18 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 10 Jan 2008 21:18:24 +0000 (16:18 -0500)
mac is a pointer, obviously we shouldn't use the address
of a pointer as MAC address.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500usb.c

index 50775f9..18b1f91 100644 (file)
@@ -257,7 +257,7 @@ static const struct rt2x00debug rt2500usb_rt2x00debug = {
 static void rt2500usb_config_mac_addr(struct rt2x00_dev *rt2x00dev,
                                      __le32 *mac)
 {
-       rt2500usb_register_multiwrite(rt2x00dev, MAC_CSR2, &mac,
+       rt2500usb_register_multiwrite(rt2x00dev, MAC_CSR2, mac,
                                      (3 * sizeof(__le16)));
 }