1 From 04dbd87265f6ba4a373b211ba324b437d224fb2d Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Sun, 17 Mar 2013 00:03:31 +0100
4 Subject: [PATCH 21/38] rt2x00: make wmac loadable via OF on rt288x/305x SoC
6 This patch ads the match table to allow loading the wmac support from a
9 Signed-off-by: John Crispin <blogic@openwrt.org>
11 drivers/net/wireless/rt2x00/rt2800pci.c | 7 +++++++
12 1 file changed, 7 insertions(+)
14 diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
15 index ded73da..e5deb9e 100644
16 --- a/drivers/net/wireless/rt2x00/rt2800pci.c
17 +++ b/drivers/net/wireless/rt2x00/rt2800pci.c
18 @@ -1183,11 +1183,18 @@ static int rt2800soc_probe(struct platform_device *pdev)
19 return rt2x00soc_probe(pdev, &rt2800pci_ops);
22 +static const struct of_device_id rt2880_wmac_match[] = {
23 + { .compatible = "ralink,rt2880-wmac" },
26 +MODULE_DEVICE_TABLE(of, rt2880_wmac_match);
28 static struct platform_driver rt2800soc_driver = {
30 .name = "rt2800_wmac",
32 .mod_name = KBUILD_MODNAME,
33 + .of_match_table = rt2880_wmac_match,
35 .probe = rt2800soc_probe,
36 .remove = rt2x00soc_remove,