Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368886
b: refs/heads/master
c: 8f99660
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and David S. Miller committed Apr 7, 2013
1 parent 306e6d1 commit 27a9daa
Show file tree
Hide file tree
Showing 2 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: fce5c293ff4462cee4e7090ed1763c414cc7d8bb
refs/heads/master: 8f996607824dba3c808bb7ed3f8f82670120383e
8 changes: 4 additions & 4 deletions trunk/drivers/net/ethernet/micrel/ks8851.c
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ static int ks8851_read_selftest(struct ks8851_net *ks)
#ifdef CONFIG_PM
static int ks8851_suspend(struct spi_device *spi, pm_message_t state)
{
struct ks8851_net *ks = dev_get_drvdata(&spi->dev);
struct ks8851_net *ks = spi_get_drvdata(spi);
struct net_device *dev = ks->netdev;

if (netif_running(dev)) {
Expand All @@ -1380,7 +1380,7 @@ static int ks8851_suspend(struct spi_device *spi, pm_message_t state)

static int ks8851_resume(struct spi_device *spi)
{
struct ks8851_net *ks = dev_get_drvdata(&spi->dev);
struct ks8851_net *ks = spi_get_drvdata(spi);
struct net_device *dev = ks->netdev;

if (netif_running(dev)) {
Expand Down Expand Up @@ -1456,7 +1456,7 @@ static int ks8851_probe(struct spi_device *spi)
SET_ETHTOOL_OPS(ndev, &ks8851_ethtool_ops);
SET_NETDEV_DEV(ndev, &spi->dev);

dev_set_drvdata(&spi->dev, ks);
spi_set_drvdata(spi, ks);

ndev->if_port = IF_PORT_100BASET;
ndev->netdev_ops = &ks8851_netdev_ops;
Expand Down Expand Up @@ -1516,7 +1516,7 @@ static int ks8851_probe(struct spi_device *spi)

static int ks8851_remove(struct spi_device *spi)
{
struct ks8851_net *priv = dev_get_drvdata(&spi->dev);
struct ks8851_net *priv = spi_get_drvdata(spi);

if (netif_msg_drv(priv))
dev_info(&spi->dev, "remove\n");
Expand Down

0 comments on commit 27a9daa

Please sign in to comment.