diff options
author | John Crispin <john@openwrt.org> | 2013-04-03 10:00:29 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-04-03 10:00:29 +0000 |
commit | 97adfa35c0d312d4bb3a0e5c38c8ea48f4e7aebb (patch) | |
tree | 5d592e954fbed01d272d29103773e251cd59e31a /package/mac80211/patches/612-rt2x00-make-wmac-loadable-via-OF-on-rt288x-305x-SoC.patch | |
parent | b4487f1e353d7f48fb551eb50671c60f56d64cd2 (diff) | |
download | upstream-97adfa35c0d312d4bb3a0e5c38c8ea48f4e7aebb.tar.gz upstream-97adfa35c0d312d4bb3a0e5c38c8ea48f4e7aebb.tar.bz2 upstream-97adfa35c0d312d4bb3a0e5c38c8ea48f4e7aebb.zip |
several patches to make OF work on rt2x00
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36178
Diffstat (limited to 'package/mac80211/patches/612-rt2x00-make-wmac-loadable-via-OF-on-rt288x-305x-SoC.patch')
-rw-r--r-- | package/mac80211/patches/612-rt2x00-make-wmac-loadable-via-OF-on-rt288x-305x-SoC.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/package/mac80211/patches/612-rt2x00-make-wmac-loadable-via-OF-on-rt288x-305x-SoC.patch b/package/mac80211/patches/612-rt2x00-make-wmac-loadable-via-OF-on-rt288x-305x-SoC.patch new file mode 100644 index 0000000000..00855f6b54 --- /dev/null +++ b/package/mac80211/patches/612-rt2x00-make-wmac-loadable-via-OF-on-rt288x-305x-SoC.patch @@ -0,0 +1,39 @@ +From 04dbd87265f6ba4a373b211ba324b437d224fb2d Mon Sep 17 00:00:00 2001 +From: John Crispin <blogic@openwrt.org> +Date: Sun, 17 Mar 2013 00:03:31 +0100 +Subject: [PATCH 21/38] rt2x00: make wmac loadable via OF on rt288x/305x SoC + +This patch ads the match table to allow loading the wmac support from a +devicetree. + +Signed-off-by: John Crispin <blogic@openwrt.org> +--- + drivers/net/wireless/rt2x00/rt2800pci.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c +index ded73da..e5deb9e 100644 +--- a/drivers/net/wireless/rt2x00/rt2800pci.c ++++ b/drivers/net/wireless/rt2x00/rt2800pci.c +@@ -1183,11 +1183,18 @@ static int rt2800soc_probe(struct platform_device *pdev) + return rt2x00soc_probe(pdev, &rt2800pci_ops); + } + ++static const struct of_device_id rt2880_wmac_match[] = { ++ { .compatible = "ralink,rt2880-wmac" }, ++ {}, ++}; ++MODULE_DEVICE_TABLE(of, rt2880_wmac_match); ++ + static struct platform_driver rt2800soc_driver = { + .driver = { + .name = "rt2800_wmac", + .owner = THIS_MODULE, + .mod_name = KBUILD_MODNAME, ++ .of_match_table = rt2880_wmac_match, + }, + .probe = rt2800soc_probe, + .remove = rt2x00soc_remove, +-- +1.7.10.4 + |