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/mac-fec.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/mac-fec.c')
-rw-r--r-- | drivers/net/fs_enet/mac-fec.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/net/fs_enet/mac-fec.c b/drivers/net/fs_enet/mac-fec.c index 0a7d1c5c6524..14e575313c89 100644 --- a/drivers/net/fs_enet/mac-fec.c +++ b/drivers/net/fs_enet/mac-fec.c | |||
@@ -313,11 +313,7 @@ static void restart(struct net_device *dev) | |||
313 | * Clear any outstanding interrupt. | 313 | * Clear any outstanding interrupt. |
314 | */ | 314 | */ |
315 | FW(fecp, ievent, 0xffc0); | 315 | FW(fecp, ievent, 0xffc0); |
316 | #ifndef CONFIG_PPC_MERGE | ||
317 | FW(fecp, ivec, (fep->interrupt / 2) << 29); | ||
318 | #else | ||
319 | FW(fecp, ivec, (virq_to_hw(fep->interrupt) / 2) << 29); | 316 | FW(fecp, ivec, (virq_to_hw(fep->interrupt) / 2) << 29); |
320 | #endif | ||
321 | 317 | ||
322 | /* | 318 | /* |
323 | * adjust to speed (only for DUET & RMII) | 319 | * adjust to speed (only for DUET & RMII) |
@@ -413,30 +409,6 @@ static void stop(struct net_device *dev) | |||
413 | } | 409 | } |
414 | } | 410 | } |
415 | 411 | ||
416 | static void pre_request_irq(struct net_device *dev, int irq) | ||
417 | { | ||
418 | #ifndef CONFIG_PPC_MERGE | ||
419 | immap_t *immap = fs_enet_immap; | ||
420 | u32 siel; | ||
421 | |||
422 | /* SIU interrupt */ | ||
423 | if (irq >= SIU_IRQ0 && irq < SIU_LEVEL7) { | ||
424 | |||
425 | siel = in_be32(&immap->im_siu_conf.sc_siel); | ||
426 | if ((irq & 1) == 0) | ||
427 | siel |= (0x80000000 >> irq); | ||
428 | else | ||
429 | siel &= ~(0x80000000 >> (irq & ~1)); | ||
430 | out_be32(&immap->im_siu_conf.sc_siel, siel); | ||
431 | } | ||
432 | #endif | ||
433 | } | ||
434 | |||
435 | static void post_free_irq(struct net_device *dev, int irq) | ||
436 | { | ||
437 | /* nothing */ | ||
438 | } | ||
439 | |||
440 | static void napi_clear_rx_event(struct net_device *dev) | 412 | static void napi_clear_rx_event(struct net_device *dev) |
441 | { | 413 | { |
442 | struct fs_enet_private *fep = netdev_priv(dev); | 414 | struct fs_enet_private *fep = netdev_priv(dev); |
@@ -529,8 +501,6 @@ const struct fs_ops fs_fec_ops = { | |||
529 | .set_multicast_list = set_multicast_list, | 501 | .set_multicast_list = set_multicast_list, |
530 | .restart = restart, | 502 | .restart = restart, |
531 | .stop = stop, | 503 | .stop = stop, |
532 | .pre_request_irq = pre_request_irq, | ||
533 | .post_free_irq = post_free_irq, | ||
534 | .napi_clear_rx_event = napi_clear_rx_event, | 504 | .napi_clear_rx_event = napi_clear_rx_event, |
535 | .napi_enable_rx = napi_enable_rx, | 505 | .napi_enable_rx = napi_enable_rx, |
536 | .napi_disable_rx = napi_disable_rx, | 506 | .napi_disable_rx = napi_disable_rx, |