Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18271
b: refs/heads/master
c: 1d53267
h: refs/heads/master
i:
  18269: 14810ee
  18267: 1d463ab
  18263: 8ca0116
  18255: 9a23728
  18239: 75b5304
v: v3
  • Loading branch information
Kumar Gala authored and Jeff Garzik committed Jan 12, 2006
1 parent 13647ec commit 08b2406
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 9c07b884b92c80e9d660b7b9282631fb626451e2
refs/heads/master: 1d5326774c9245fef77334a9e0f11cd4f8aa7b4e
5 changes: 4 additions & 1 deletion trunk/drivers/net/gianfar_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ int gfar_mdio_probe(struct device *dev)
struct gianfar_mdio_data *pdata;
struct gfar_mii *regs;
struct mii_bus *new_bus;
struct resource *r;
int err = 0;

if (NULL == dev)
Expand All @@ -151,8 +152,10 @@ int gfar_mdio_probe(struct device *dev)
return -ENODEV;
}

r = platform_get_resource(pdev, IORESOURCE_MEM, 0);

/* Set the PHY base address */
regs = (struct gfar_mii *) ioremap(pdata->paddr,
regs = (struct gfar_mii *) ioremap(r->start,
sizeof (struct gfar_mii));

if (NULL == regs) {
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/fsl_devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ struct gianfar_platform_data {
};

struct gianfar_mdio_data {
/* device specific information */
u32 paddr;

/* board specific information */
int irq[32];
};
Expand Down

0 comments on commit 08b2406

Please sign in to comment.