]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
build fix and driver fix
authorJason Liu <jason.hui@linaro.org>
Wed, 14 Dec 2011 14:03:31 +0000 (22:03 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:36 +0000 (08:33 +0200)
Signed-off-by: Jason Liu <jason.hui@linaro.org>
drivers/mmc/host/sdhci.h
drivers/net/fec.c [changed mode: 0644->0755]
drivers/regulator/Kconfig
drivers/rtc/rtc-snvs.c
drivers/usb/host/ehci-arc.c
drivers/usb/host/ehci.h
drivers/usb/otg/fsl_otg.c

index 2899a9fc8df4a31f0f2d4b7e4a6b2bf64fa36c81..e6af69ecc43fddb833632b5eb3512c7d929921a4 100644 (file)
@@ -275,6 +275,7 @@ struct sdhci_ops {
        int     (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
 
        void            (*pre_tuning)(struct sdhci_host *host, u32 val);
+       void            (*platform_clk_ctrl)(struct sdhci_host *host, bool enable);
 };
 
 #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
old mode 100644 (file)
new mode 100755 (executable)
index dc6349c..b56a623
@@ -57,7 +57,7 @@
 #include "fec.h"
 #include "fec_1588.h"
 
-#if defined(CONFIG_ARM)
+#if defined(CONFIG_ARCH_MXC) || defined(CONFIG_SOC_IMX28)
 #define FEC_ALIGNMENT  0xf
 #else
 #define FEC_ALIGNMENT  0x3
@@ -167,7 +167,8 @@ MODULE_PARM_DESC(macaddr, "FEC Ethernet MAC address");
  * account when setting it.
  */
 #if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
-    defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM)
+    defined(CONFIG_M520x) || defined(CONFIG_M532x) || \
+    defined(CONFIG_ARCH_MXC) || defined(CONFIG_SOC_IMX28)
 #define        OPT_FRAME_SIZE  (PKT_MAXBUF_SIZE << 16)
 #else
 #define        OPT_FRAME_SIZE  0
@@ -229,6 +230,13 @@ struct fec_enet_private {
        uint    ptimer_present;
 };
 
+static irqreturn_t fec_enet_interrupt(int irq, void * dev_id);
+static void fec_enet_tx(struct net_device *dev);
+static void fec_enet_rx(struct net_device *dev);
+static int fec_enet_close(struct net_device *dev);
+static void fec_restart(struct net_device *dev, int duplex);
+static void fec_stop(struct net_device *dev);
+
 /* FEC MII MMFR bits definition */
 #define FEC_MMFR_ST            (1 << 30)
 #define FEC_MMFR_OP_READ       (2 << 28)
@@ -301,7 +309,7 @@ fec_enet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
        if (((unsigned long) bufaddr) & FEC_ALIGNMENT) {
                unsigned int index;
                index = bdp - fep->tx_bd_base;
-               memcpy(fep->tx_bounce[index], skb->data, skb->len);
+               memcpy(fep->tx_bounce[index], (void *)skb->data, skb->len);
                bufaddr = fep->tx_bounce[index];
        }
 
@@ -558,7 +566,7 @@ fec_enet_rx(struct net_device *ndev)
                        /* 1588 messeage TS handle */
                        if (fep->ptimer_present)
                                fec_ptp_store_rxstamp(fpp, skb, bdp);
-                       skb->protocol = eth_type_trans(skb, dev);
+                       skb->protocol = eth_type_trans(skb, ndev);
                        netif_rx(skb);
                }
 
@@ -819,7 +827,7 @@ static int fec_enet_mii_probe(struct net_device *ndev)
        }
 
        snprintf(phy_name, MII_BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, phy_id);
-       phy_dev = phy_connect(dev, phy_name, &fec_enet_adjust_link, 0,
+       phy_dev = phy_connect(ndev, phy_name, &fec_enet_adjust_link, 0,
                fep->phy_interface);
 
        if (IS_ERR(phy_dev)) {
@@ -1084,7 +1092,7 @@ fec_enet_open(struct net_device *ndev)
 
        if (!clk_get_usecount(fep->clk))
                clk_enable(fep->clk);
-       ret = fec_enet_alloc_buffers(dev);
+       ret = fec_enet_alloc_buffers(ndev);
        if (ret)
                return ret;
 
index db301f4758b302776399c48da01f6f4a72a2cc53..f996525305edc693bc079b9cef1eba17dbae666d 100755 (executable)
@@ -290,6 +290,9 @@ config REGULATOR_DB8500_PRCMU
 
 config REGULATOR_TPS6586X
        tristate "TI TPS6586X Power regulators"
+       depends on MFD_TPS6586X
+       help
+         This driver supports TPS6586X voltage regulator chips.
 
 config REGULATOR_ANATOP
        tristate "ANATOP LDO regulators"
@@ -298,9 +301,6 @@ config REGULATOR_ANATOP
        default y
        help
          Say y here to support ANATOP LDOs regulators.
-       depends on MFD_TPS6586X
-       help
-         This driver supports TPS6586X voltage regulator chips.
 
 config REGULATOR_TPS6524X
        tristate "TI TPS6524X Power regulators"
index dfd784936b285c05266861d6435427a273482f58..0fd8b23a5d1a29e0e1938edb4c0af41d47eb3ead 100644 (file)
@@ -483,6 +483,7 @@ static int snvs_rtc_probe(struct platform_device *pdev)
        pdata->ioaddr = ioremap(pdata->baseaddr, 0xC00);
        ioaddr = pdata->ioaddr;
        pdata->irq = platform_get_irq(pdev, 0);
+       platform_set_drvdata(pdev, pdata);
 
        /* initialize glitch detect */
        __raw_writel(SNVS_LPPGDR_INIT, ioaddr + SNVS_LPPGDR);
@@ -520,7 +521,6 @@ static int snvs_rtc_probe(struct platform_device *pdev)
        }
 
        pdata->rtc = rtc;
-       platform_set_drvdata(pdev, pdata);
 
        tv.tv_nsec = 0;
        tv.tv_sec = rtc_read_lp_counter(ioaddr + SNVS_LPSRTCMR);
index 5ccfdf8e7b2ef34e762050692feefa03074d0911..641927339a9fd95fae16aa4240c55c2a6af29054 100755 (executable)
@@ -502,7 +502,7 @@ static int ehci_fsl_setup(struct usb_hcd *hcd)
        /* EHCI registers start at offset 0x100 */
        ehci->caps = hcd->regs + 0x100;
        ehci->regs = hcd->regs + 0x100 +
-           HC_LENGTH(ehci_readl(ehci, &ehci->caps->hc_capbase));
+           HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase));
        dbg_hcs_params(ehci, "reset");
        dbg_hcc_params(ehci, "reset");
 
index c208d0b7dd0ed33f5dc5a99d7f9efbf6625480e9..dd493a6c31d67e2a447b079ea16e100c478bb086 100644 (file)
@@ -176,10 +176,6 @@ struct ehci_hcd {                  /* one per controller */
 #ifdef DEBUG
        struct dentry           *debug_dir;
 #endif
-       /*
-        * OTG controllers and transceivers need software interaction
-        */
-       struct otg_transceiver  *transceiver;
 };
 
 /* convert between an HCD pointer and the corresponding EHCI_HCD */
index be8e0160a197dae30ad1ca64f7fa4a63d46b663d..7ee9fcad8d5eaa84cc4b6e41d1a911695636cd48 100755 (executable)
@@ -27,7 +27,6 @@
 #include <linux/ioport.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
-#include <linux/smp_lock.h>
 #include <linux/proc_fs.h>
 #include <linux/errno.h>
 #include <linux/init.h>
@@ -802,9 +801,9 @@ irqreturn_t fsl_otg_isr_gpio(int irq, void *dev_id)
        value = gpio_get_value(pdata->id_gpio) ? 1 : 0;
 
        if (value)
-               set_irq_type(gpio_to_irq(pdata->id_gpio), IRQ_TYPE_LEVEL_LOW);
+               irq_set_irq_type(gpio_to_irq(pdata->id_gpio), IRQ_TYPE_LEVEL_LOW);
        else
-               set_irq_type(gpio_to_irq(pdata->id_gpio), IRQ_TYPE_LEVEL_HIGH);
+               irq_set_irq_type(gpio_to_irq(pdata->id_gpio), IRQ_TYPE_LEVEL_HIGH);
 
 
        if (value == f_otg->fsm.id)
@@ -1082,10 +1081,10 @@ int usb_otg_start(struct platform_device *pdev)
        if (pdata->id_gpio != 0) {
                p_otg->fsm.id = gpio_get_value(pdata->id_gpio) ? 1 : 0;
                if (p_otg->fsm.id)
-                       set_irq_type(gpio_to_irq(pdata->id_gpio),
+                       irq_set_irq_type(gpio_to_irq(pdata->id_gpio),
                                IRQ_TYPE_LEVEL_LOW);
                else
-                       set_irq_type(gpio_to_irq(pdata->id_gpio),
+                       irq_set_irq_type(gpio_to_irq(pdata->id_gpio),
                                IRQ_TYPE_LEVEL_HIGH);
        }
        p_otg->otg.state = p_otg->fsm.id ? OTG_STATE_UNDEFINED :