mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
rt2x00: Corectly initialize rt2500usb MAC
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>
This commit is contained in:
parent
62bc060b8e
commit
dd87145d2c
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue