| .. | .. |
|---|
| 406 | 406 | static int mcf8390_probe(struct platform_device *pdev) |
|---|
| 407 | 407 | { |
|---|
| 408 | 408 | struct net_device *dev; |
|---|
| 409 | | - struct resource *mem, *irq; |
|---|
| 409 | + struct resource *mem; |
|---|
| 410 | 410 | resource_size_t msize; |
|---|
| 411 | | - int ret; |
|---|
| 411 | + int ret, irq; |
|---|
| 412 | 412 | |
|---|
| 413 | | - irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
|---|
| 414 | | - if (irq == NULL) { |
|---|
| 413 | + irq = platform_get_irq(pdev, 0); |
|---|
| 414 | + if (irq < 0) { |
|---|
| 415 | 415 | dev_err(&pdev->dev, "no IRQ specified?\n"); |
|---|
| 416 | 416 | return -ENXIO; |
|---|
| 417 | 417 | } |
|---|
| .. | .. |
|---|
| 434 | 434 | SET_NETDEV_DEV(dev, &pdev->dev); |
|---|
| 435 | 435 | platform_set_drvdata(pdev, dev); |
|---|
| 436 | 436 | |
|---|
| 437 | | - dev->irq = irq->start; |
|---|
| 437 | + dev->irq = irq; |
|---|
| 438 | 438 | dev->base_addr = mem->start; |
|---|
| 439 | 439 | |
|---|
| 440 | 440 | ret = mcf8390_init(dev); |
|---|