aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2009-11-08 06:30:14 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-11 15:23:55 -0500
commit2015d1920c6ec637b16db1e8734d9070983db21f (patch)
tree1eb03722ae361e0af89c04d967acb526df8ae4ed /drivers/net/wireless/rt2x00
parentf9ef6028b2c1272a2f12299053efef90e8721f21 (diff)
rt2x00: Move interface type assignments to generic code.
Make sure all drivers can benefit of the assignment of the interface type of an adapter, instead of keeping it for rt2800 only. Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00soc.c5
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00usb.c2
5 files changed, 9 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 3c5b875cdee8..bff870799f64 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -1465,8 +1465,6 @@ static int rt2800pci_probe_hw(struct rt2x00_dev *rt2x00dev)
1465{ 1465{
1466 int retval; 1466 int retval;
1467 1467
1468 rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCI);
1469
1470 rt2x00dev->priv = (void *)&rt2800pci_rt2800_ops; 1468 rt2x00dev->priv = (void *)&rt2800pci_rt2800_ops;
1471 1469
1472 /* 1470 /*
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
index ce2e893856c1..3168ad4437a4 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -1074,8 +1074,6 @@ static int rt2800usb_probe_hw(struct rt2x00_dev *rt2x00dev)
1074{ 1074{
1075 int retval; 1075 int retval;
1076 1076
1077 rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_USB);
1078
1079 rt2x00dev->priv = (void *)&rt2800usb_rt2800_ops; 1077 rt2x00dev->priv = (void *)&rt2800usb_rt2800_ops;
1080 1078
1081 /* 1079 /*
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
index cdd5154bd4c0..ece70d72880f 100644
--- a/drivers/net/wireless/rt2x00/rt2x00pci.c
+++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
@@ -310,6 +310,8 @@ int rt2x00pci_probe(struct pci_dev *pci_dev, const struct pci_device_id *id)
310 rt2x00dev->irq = pci_dev->irq; 310 rt2x00dev->irq = pci_dev->irq;
311 rt2x00dev->name = pci_name(pci_dev); 311 rt2x00dev->name = pci_name(pci_dev);
312 312
313 rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCI);
314
313 /* 315 /*
314 * Determine RT chipset by reading PCI header. 316 * Determine RT chipset by reading PCI header.
315 */ 317 */
diff --git a/drivers/net/wireless/rt2x00/rt2x00soc.c b/drivers/net/wireless/rt2x00/rt2x00soc.c
index 539568c48953..4abcfa6bf1b2 100644
--- a/drivers/net/wireless/rt2x00/rt2x00soc.c
+++ b/drivers/net/wireless/rt2x00/rt2x00soc.c
@@ -93,6 +93,11 @@ int rt2x00soc_probe(struct platform_device *pdev,
93 rt2x00dev->irq = platform_get_irq(pdev, 0); 93 rt2x00dev->irq = platform_get_irq(pdev, 0);
94 rt2x00dev->name = pdev->dev.driver->name; 94 rt2x00dev->name = pdev->dev.driver->name;
95 95
96 /*
97 * SoC devices mimic PCI behavior.
98 */
99 rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCI);
100
96 rt2x00_set_chip_rt(rt2x00dev, chipset); 101 rt2x00_set_chip_rt(rt2x00dev, chipset);
97 102
98 retval = rt2x00soc_alloc_reg(rt2x00dev); 103 retval = rt2x00soc_alloc_reg(rt2x00dev);
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c
index c9cbdaa1073f..aa6c31d612a7 100644
--- a/drivers/net/wireless/rt2x00/rt2x00usb.c
+++ b/drivers/net/wireless/rt2x00/rt2x00usb.c
@@ -653,6 +653,8 @@ int rt2x00usb_probe(struct usb_interface *usb_intf,
653 rt2x00dev->ops = ops; 653 rt2x00dev->ops = ops;
654 rt2x00dev->hw = hw; 654 rt2x00dev->hw = hw;
655 655
656 rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_USB);
657
656 retval = rt2x00usb_alloc_reg(rt2x00dev); 658 retval = rt2x00usb_alloc_reg(rt2x00dev);
657 if (retval) 659 if (retval)
658 goto exit_free_device; 660 goto exit_free_device;