Author: blogic
Date: 2016-01-01 22:17:21 +0100 (Fri, 01 Jan 2016)
New Revision: 48030

Modified:
   
trunk/target/linux/ramips/patches-4.3/0506-net-next-mediatek-add-support-for-rt3050.patch
Log:
ralink: fix rt3050/5350 ethernet switch support

Signed-off-by: John Crispin <[email protected]>

Modified: 
trunk/target/linux/ramips/patches-4.3/0506-net-next-mediatek-add-support-for-rt3050.patch
===================================================================
--- 
trunk/target/linux/ramips/patches-4.3/0506-net-next-mediatek-add-support-for-rt3050.patch
   2016-01-01 18:58:02 UTC (rev 48029)
+++ 
trunk/target/linux/ramips/patches-4.3/0506-net-next-mediatek-add-support-for-rt3050.patch
   2016-01-01 21:17:21 UTC (rev 48030)
@@ -19,8 +19,6 @@
  2 files changed, 159 insertions(+), 17 deletions(-)
  create mode 100644 drivers/net/ethernet/mediatek/soc_rt3050.c
 
-diff --git a/drivers/net/ethernet/mediatek/esw_rt3050.c 
b/drivers/net/ethernet/mediatek/esw_rt3050.c
-index f07f4a5..670ae16 100644
 --- a/drivers/net/ethernet/mediatek/esw_rt3050.c
 +++ b/drivers/net/ethernet/mediatek/esw_rt3050.c
 @@ -14,27 +14,11 @@
@@ -51,7 +49,7 @@
  /* HW limitations for this switch:
   * - No large frame support (PKT_MAX_LEN at most 1536)
   * - Can't have untagged vlan and tagged vlan on one port at the same time,
-@@ -559,7 +543,7 @@ static irqreturn_t esw_interrupt(int irq, void *_esw)
+@@ -559,7 +543,7 @@
  
  static int esw_probe(struct platform_device *pdev)
  {
@@ -60,9 +58,24 @@
        struct device_node *np = pdev->dev.of_node;
        const __be32 *port_map, *reg_init;
        struct rt305x_esw *esw;
-diff --git a/drivers/net/ethernet/mediatek/soc_rt3050.c 
b/drivers/net/ethernet/mediatek/soc_rt3050.c
-new file mode 100644
-index 0000000..228c94f
+@@ -629,12 +613,9 @@
+       },
+ };
+ 
+-int __init mtk_switch_init(void)
+-{
+-      return platform_driver_register(&esw_driver);
+-}
++module_platform_driver(esw_driver);
+ 
+-void mtk_switch_exit(void)
+-{
+-      platform_driver_unregister(&esw_driver);
+-}
++MODULE_LICENSE("GPL");
++MODULE_AUTHOR("John Crispin <[email protected]>");
++MODULE_DESCRIPTION("Switch driver for RT305X SoC");
++MODULE_VERSION(MTK_FE_DRV_VERSION);
 --- /dev/null
 +++ b/drivers/net/ethernet/mediatek/soc_rt3050.c
 @@ -0,0 +1,158 @@
@@ -224,6 +237,3 @@
 +};
 +
 +MODULE_DEVICE_TABLE(of, of_fe_match);
--- 
-1.7.10.4
-
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to