Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105171
b: refs/heads/master
c: d280ead
h: refs/heads/master
i:
  105169: f2dc7be
  105167: 5bf62fe
v: v3
  • Loading branch information
Eric Miao authored and Russell King committed Jul 12, 2008
1 parent 5ed73f1 commit 31ee03c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37d7035da5b1f184c610b038b376c0c647d8d72b
refs/heads/master: d280eadc4fba0bf99fb1c3b60e8c5e007f7da02c
3 changes: 1 addition & 2 deletions trunk/arch/sh/boards/renesas/migor/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

static struct smc91x_platdata smc91x_info = {
.flags = SMC91X_USE_16BIT,
.irq_flags = IRQF_TRIGGER_HIGH,
};

static struct resource smc91x_eth_resources[] = {
Expand All @@ -42,7 +41,7 @@ static struct resource smc91x_eth_resources[] = {
},
[1] = {
.start = 32, /* IRQ0 */
.flags = IORESOURCE_IRQ,
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
},
};

Expand Down
9 changes: 5 additions & 4 deletions trunk/drivers/net/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,7 @@ static int smc_drv_probe(struct platform_device *pdev)
struct net_device *ndev;
struct resource *res, *ires;
unsigned int __iomem *addr;
unsigned long irq_flags = SMC_IRQ_FLAGS;
int ret;

res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs");
Expand Down Expand Up @@ -2152,7 +2153,6 @@ static int smc_drv_probe(struct platform_device *pdev)
*/

lp = netdev_priv(ndev);
lp->cfg.irq_flags = SMC_IRQ_FLAGS;

#ifdef SMC_DYNAMIC_BUS_CONFIG
if (pd)
Expand All @@ -2177,8 +2177,9 @@ static int smc_drv_probe(struct platform_device *pdev)
}

ndev->irq = ires->start;
if (SMC_IRQ_FLAGS == -1)
lp->cfg.irq_flags = ires->flags & IRQF_TRIGGER_MASK;

if (ires->flags & IRQF_TRIGGER_MASK)
irq_flags = ires->flags & IRQF_TRIGGER_MASK;

ret = smc_request_attrib(pdev);
if (ret)
Expand All @@ -2205,7 +2206,7 @@ static int smc_drv_probe(struct platform_device *pdev)
}
#endif

ret = smc_probe(ndev, addr, lp->cfg.irq_flags);
ret = smc_probe(ndev, addr, irq_flags);
if (ret != 0)
goto out_iounmap;

Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

struct smc91x_platdata {
unsigned long flags;
unsigned long irq_flags; /* IRQF_... */
};

#endif /* __SMC91X_H__ */

0 comments on commit 31ee03c

Please sign in to comment.