Skip to content

Commit

Permalink
ax88796: remove platform_device member from struct ax_device
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Feb 21, 2011
1 parent 85ac616 commit 0f442f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/ax88796.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ struct ax_device {

u32 msg_enable;
void __iomem *map2;
struct platform_device *dev;
struct resource *mem;
struct resource *mem2;
struct ax_plat_data *plat;
Expand Down Expand Up @@ -545,11 +544,11 @@ static int ax_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
static void ax_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info)
{
struct ax_device *ax = to_ax_dev(dev);
struct platform_device *pdev = to_platform_device(dev->dev.parent);

strcpy(info->driver, DRV_NAME);
strcpy(info->version, DRV_VERSION);
strcpy(info->bus_info, ax->dev->name);
strcpy(info->bus_info, pdev->name);
}

static int ax_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
Expand Down Expand Up @@ -848,7 +847,6 @@ static int ax_probe(struct platform_device *pdev)

spin_lock_init(&ax->mii_lock);

ax->dev = pdev;
ax->plat = pdev->dev.platform_data;
platform_set_drvdata(pdev, dev);

Expand Down

0 comments on commit 0f442f5

Please sign in to comment.