IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / net / ucc_geth.c
index 4e188f4289b4b2787f003644e055de8923b69583..12cd7b561f35aba401769575f34d17a13883c32e 100644 (file)
@@ -3844,8 +3844,7 @@ static int ucc_geth_poll(struct net_device *dev, int *budget)
 }
 #endif                         /* CONFIG_UGETH_NAPI */
 
-static irqreturn_t ucc_geth_irq_handler(int irq, void *info,
-                                       struct pt_regs *regs)
+static irqreturn_t ucc_geth_irq_handler(int irq, void *info)
 {
        struct net_device *dev = (struct net_device *)info;
        ucc_geth_private_t *ugeth = netdev_priv(dev);
@@ -3910,7 +3909,7 @@ static irqreturn_t ucc_geth_irq_handler(int irq, void *info,
        return IRQ_HANDLED;
 }
 
-static irqreturn_t phy_interrupt(int irq, void *dev_id, struct pt_regs *regs)
+static irqreturn_t phy_interrupt(int irq, void *dev_id)
 {
        struct net_device *dev = (struct net_device *)dev_id;
        ucc_geth_private_t *ugeth = netdev_priv(dev);
@@ -4129,20 +4128,7 @@ static int ucc_geth_close(struct net_device *dev)
        return 0;
 }
 
-struct ethtool_ops ucc_geth_ethtool_ops = {
-       .get_settings = NULL,
-       .get_drvinfo = NULL,
-       .get_regs_len = NULL,
-       .get_regs = NULL,
-       .get_link = NULL,
-       .get_coalesce = NULL,
-       .set_coalesce = NULL,
-       .get_ringparam = NULL,
-       .set_ringparam = NULL,
-       .get_strings = NULL,
-       .get_stats_count = NULL,
-       .get_ethtool_stats = NULL,
-};
+const struct ethtool_ops ucc_geth_ethtool_ops = { };
 
 static int ucc_geth_probe(struct device *device)
 {