diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-09-22 17:52:18 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 22:11:57 -0400 |
commit | 315781408ef4a6ff831f8fd37c90d4bb7c234853 (patch) | |
tree | 43ee75ef4b3c1fbb1a247446ed34a5dc5f4478fb /drivers/net/fs_enet/fs_enet-main.c | |
parent | 83dad4c3773b2be110f9ab0c9031e6129bd2e294 (diff) |
fs-enet: remove code associated with !CONFIG_PPC_MERGE
Now that arch/ppc is gone we don't need CONFIG_PPC_MERGE anymore remove
the dead code associated with !CONFIG_PPC_MERGE.
With this change the pre_request_irq() and post_free_irq() calls became
nops so they have been removed. Also removed fs_request_irq() and
fs_free_irq() and just called request_irq() and free_irq().
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/fs_enet/fs_enet-main.c')
-rw-r--r-- | drivers/net/fs_enet/fs_enet-main.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c index 9d461825bf4c..cb51c1fb0338 100644 --- a/drivers/net/fs_enet/fs_enet-main.c +++ b/drivers/net/fs_enet/fs_enet-main.c | |||
@@ -664,23 +664,6 @@ static int fs_enet_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
664 | return NETDEV_TX_OK; | 664 | return NETDEV_TX_OK; |
665 | } | 665 | } |
666 | 666 | ||
667 | static int fs_request_irq(struct net_device *dev, int irq, const char *name, | ||
668 | irq_handler_t irqf) | ||
669 | { | ||
670 | struct fs_enet_private *fep = netdev_priv(dev); | ||
671 | |||
672 | (*fep->ops->pre_request_irq)(dev, irq); | ||
673 | return request_irq(irq, irqf, IRQF_SHARED, name, dev); | ||
674 | } | ||
675 | |||
676 | static void fs_free_irq(struct net_device *dev, int irq) | ||
677 | { | ||
678 | struct fs_enet_private *fep = netdev_priv(dev); | ||
679 | |||
680 | free_irq(irq, dev); | ||
681 | (*fep->ops->post_free_irq)(dev, irq); | ||
682 | } | ||
683 | |||
684 | static void fs_timeout(struct net_device *dev) | 667 | static void fs_timeout(struct net_device *dev) |
685 | { | 668 | { |
686 | struct fs_enet_private *fep = netdev_priv(dev); | 669 | struct fs_enet_private *fep = netdev_priv(dev); |
@@ -800,7 +783,8 @@ static int fs_enet_open(struct net_device *dev) | |||
800 | napi_enable(&fep->napi); | 783 | napi_enable(&fep->napi); |
801 | 784 | ||
802 | /* Install our interrupt handler. */ | 785 | /* Install our interrupt handler. */ |
803 | r = fs_request_irq(dev, fep->interrupt, "fs_enet-mac", fs_enet_interrupt); | 786 | r = request_irq(fep->interrupt, fs_enet_interrupt, IRQF_SHARED, |
787 | "fs_enet-mac", dev); | ||
804 | if (r != 0) { | 788 | if (r != 0) { |
805 | printk(KERN_ERR DRV_MODULE_NAME | 789 | printk(KERN_ERR DRV_MODULE_NAME |
806 | ": %s Could not allocate FS_ENET IRQ!", dev->name); | 790 | ": %s Could not allocate FS_ENET IRQ!", dev->name); |
@@ -842,7 +826,7 @@ static int fs_enet_close(struct net_device *dev) | |||
842 | /* release any irqs */ | 826 | /* release any irqs */ |
843 | phy_disconnect(fep->phydev); | 827 | phy_disconnect(fep->phydev); |
844 | fep->phydev = NULL; | 828 | fep->phydev = NULL; |
845 | fs_free_irq(dev, fep->interrupt); | 829 | free_irq(fep->interrupt, dev); |
846 | 830 | ||
847 | return 0; | 831 | return 0; |
848 | } | 832 | } |