powerpc: Improve (in|out)_[bl]eXX() asm code
[sfrench/cifs-2.6.git] / arch / ppc / 8260_io / fcc_enet.c
index 6f3ed6a72e0be3a2c895485824ff8c8ec842e54f..d38b57e24ceefc94b29d9a82cde473dac6dd86f2 100644 (file)
@@ -165,9 +165,6 @@ static int fcc_enet_set_mac_address(struct net_device *dev, void *addr);
 #ifdef CONFIG_SBC82xx
 #define F1_RXCLK       9
 #define F1_TXCLK       10
-#elif defined(CONFIG_ADS8272)
-#define F1_RXCLK       11
-#define F1_TXCLK       10
 #else
 #define F1_RXCLK       12
 #define F1_TXCLK       11
@@ -175,13 +172,8 @@ static int fcc_enet_set_mac_address(struct net_device *dev, void *addr);
 
 /* FCC2 Clock Source Configuration.  There are board specific.
    Can only choose from CLK13-16 */
-#ifdef CONFIG_ADS8272
-#define F2_RXCLK       15
-#define F2_TXCLK       16
-#else
 #define F2_RXCLK       13
 #define F2_TXCLK       14
-#endif
 
 /* FCC3 Clock Source Configuration.  There are board specific.
    Can only choose from CLK13-16 */
@@ -289,10 +281,7 @@ static int fcc_enet_set_mac_address(struct net_device *dev, void *addr);
 /* TQM8260 has MDIO and MDCK on PC30 and PC31 respectively */
 #define PC_MDIO                ((uint)0x00000002)
 #define PC_MDCK                ((uint)0x00000001)
-#elif defined(CONFIG_ADS8272)
-#define PC_MDIO                ((uint)0x00002000)
-#define PC_MDCK                ((uint)0x00001000)
-#elif defined(CONFIG_EST8260) || defined(CONFIG_ADS8260) || defined(CONFIG_PQ2FADS)
+#elif defined(CONFIG_EST8260) || defined(CONFIG_ADS8260)
 #define PC_MDIO                ((uint)0x00400000)
 #define PC_MDCK                ((uint)0x00200000)
 #else
@@ -524,7 +513,7 @@ fcc_enet_timeout(struct net_device *dev)
 
 /* The interrupt handler. */
 static irqreturn_t
-fcc_enet_interrupt(int irq, void * dev_id)
+fcc_enet_interrupt(int irq, void *dev_id)
 {
        struct  net_device *dev = dev_id;
        volatile struct fcc_enet_private *cep;
@@ -532,7 +521,7 @@ fcc_enet_interrupt(int irq, void * dev_id)
        ushort  int_events;
        int     must_restart;
 
-       cep = (struct fcc_enet_private *)dev->priv;
+       cep = dev->priv;
 
        /* Get the interrupt events that caused us to be here.
        */
@@ -682,7 +671,7 @@ fcc_enet_rx(struct net_device *dev)
        struct  sk_buff *skb;
        ushort  pkt_len;
 
-       cep = (struct fcc_enet_private *)dev->priv;
+       cep = dev->priv;
 
        /* First, grab all of the stats for the incoming packet.
         * These get messed up if we get called due to a busy condition.
@@ -2118,11 +2107,6 @@ init_fcc_startup(fcc_info_t *fip, struct net_device *dev)
                printk("Can't get FCC IRQ %d\n", fip->fc_interrupt);
 
 #ifdef PHY_INTERRUPT
-#ifdef CONFIG_ADS8272
-       if (request_irq(PHY_INTERRUPT, mii_link_interrupt, IRQF_SHARED,
-                               "mii", dev) < 0)
-               printk(KERN_CRIT "Can't get MII IRQ %d\n", PHY_INTERRUPT);
-#else
        /* Make IRQn edge triggered.  This does not work if PHY_INTERRUPT is
         * on Port C.
         */
@@ -2132,7 +2116,6 @@ init_fcc_startup(fcc_info_t *fip, struct net_device *dev)
        if (request_irq(PHY_INTERRUPT, mii_link_interrupt, 0,
                                                        "mii", dev) < 0)
                printk(KERN_CRIT "Can't get MII IRQ %d\n", PHY_INTERRUPT);
-#endif
 #endif /* PHY_INTERRUPT */
 
        /* Set GFMR to enable Ethernet operating mode.