aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fs_enet/mac-fec.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/freescale/fs_enet/mac-fec.c')
-rw-r--r--drivers/net/ethernet/freescale/fs_enet/mac-fec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-fec.c b/drivers/net/ethernet/freescale/fs_enet/mac-fec.c
index 9ae6cdbcac2e..a9a00f39521a 100644
--- a/drivers/net/ethernet/freescale/fs_enet/mac-fec.c
+++ b/drivers/net/ethernet/freescale/fs_enet/mac-fec.c
@@ -31,7 +31,9 @@
31#include <linux/bitops.h> 31#include <linux/bitops.h>
32#include <linux/fs.h> 32#include <linux/fs.h>
33#include <linux/platform_device.h> 33#include <linux/platform_device.h>
34#include <linux/of_address.h>
34#include <linux/of_device.h> 35#include <linux/of_device.h>
36#include <linux/of_irq.h>
35#include <linux/gfp.h> 37#include <linux/gfp.h>
36 38
37#include <asm/irq.h> 39#include <asm/irq.h>
@@ -98,7 +100,7 @@ static int do_pd_setup(struct fs_enet_private *fep)
98{ 100{
99 struct platform_device *ofdev = to_platform_device(fep->dev); 101 struct platform_device *ofdev = to_platform_device(fep->dev);
100 102
101 fep->interrupt = of_irq_to_resource(ofdev->dev.of_node, 0, NULL); 103 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0);
102 if (fep->interrupt == NO_IRQ) 104 if (fep->interrupt == NO_IRQ)
103 return -EINVAL; 105 return -EINVAL;
104 106