Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68694
b: refs/heads/master
c: eb4d84f
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 14, 2007
1 parent c8387c7 commit 4e16ada
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 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: c6b44e50b8958d9bfe3003c81e70d9a53852ae52
refs/heads/master: eb4d84f18598211ccfdecc0a7f14a048cb86e657
2 changes: 1 addition & 1 deletion trunk/drivers/net/ibm_newemac/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ static u32 emac_ethtool_get_rx_csum(struct net_device *ndev)
{
struct emac_instance *dev = netdev_priv(ndev);

return dev->tah_dev != 0;
return dev->tah_dev != NULL;
}

static int emac_get_regs_len(struct emac_instance *dev)
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/net/ibm_newemac/rgmii.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static inline u32 rgmii_mode_mask(int mode, int input)
int __devinit rgmii_attach(struct of_device *ofdev, int input, int mode)
{
struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev);
struct rgmii_regs *p = dev->base;
struct rgmii_regs __iomem *p = dev->base;

RGMII_DBG(dev, "attach(%d)" NL, input);

Expand Down Expand Up @@ -113,7 +113,7 @@ int __devinit rgmii_attach(struct of_device *ofdev, int input, int mode)
void rgmii_set_speed(struct of_device *ofdev, int input, int speed)
{
struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev);
struct rgmii_regs *p = dev->base;
struct rgmii_regs __iomem *p = dev->base;
u32 ssr;

mutex_lock(&dev->lock);
Expand All @@ -135,7 +135,7 @@ void rgmii_set_speed(struct of_device *ofdev, int input, int speed)
void rgmii_get_mdio(struct of_device *ofdev, int input)
{
struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev);
struct rgmii_regs *p = dev->base;
struct rgmii_regs __iomem *p = dev->base;
u32 fer;

RGMII_DBG2(dev, "get_mdio(%d)" NL, input);
Expand All @@ -156,7 +156,7 @@ void rgmii_get_mdio(struct of_device *ofdev, int input)
void rgmii_put_mdio(struct of_device *ofdev, int input)
{
struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev);
struct rgmii_regs *p = dev->base;
struct rgmii_regs __iomem *p = dev->base;
u32 fer;

RGMII_DBG2(dev, "put_mdio(%d)" NL, input);
Expand All @@ -177,7 +177,7 @@ void rgmii_put_mdio(struct of_device *ofdev, int input)
void __devexit rgmii_detach(struct of_device *ofdev, int input)
{
struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev);
struct rgmii_regs *p = dev->base;
struct rgmii_regs __iomem *p = dev->base;

mutex_lock(&dev->lock);

Expand Down Expand Up @@ -242,7 +242,7 @@ static int __devinit rgmii_probe(struct of_device *ofdev,
}

rc = -ENOMEM;
dev->base = (struct rgmii_regs *)ioremap(regs.start,
dev->base = (struct rgmii_regs __iomem *)ioremap(regs.start,
sizeof(struct rgmii_regs));
if (dev->base == NULL) {
printk(KERN_ERR "%s: Can't map device registers!\n",
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/ibm_newemac/tah.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void __devexit tah_detach(struct of_device *ofdev, int channel)
void tah_reset(struct of_device *ofdev)
{
struct tah_instance *dev = dev_get_drvdata(&ofdev->dev);
struct tah_regs *p = dev->base;
struct tah_regs __iomem *p = dev->base;
int n;

/* Reset TAH */
Expand Down Expand Up @@ -108,7 +108,7 @@ static int __devinit tah_probe(struct of_device *ofdev,
}

rc = -ENOMEM;
dev->base = (struct tah_regs *)ioremap(regs.start,
dev->base = (struct tah_regs __iomem *)ioremap(regs.start,
sizeof(struct tah_regs));
if (dev->base == NULL) {
printk(KERN_ERR "%s: Can't map device registers!\n",
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/ibm_newemac/zmii.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static inline u32 zmii_mode_mask(int mode, int input)
int __devinit zmii_attach(struct of_device *ofdev, int input, int *mode)
{
struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev);
struct zmii_regs *p = dev->base;
struct zmii_regs __iomem *p = dev->base;

ZMII_DBG(dev, "init(%d, %d)" NL, input, *mode);

Expand Down Expand Up @@ -250,7 +250,7 @@ static int __devinit zmii_probe(struct of_device *ofdev,
}

rc = -ENOMEM;
dev->base = (struct zmii_regs *)ioremap(regs.start,
dev->base = (struct zmii_regs __iomem *)ioremap(regs.start,
sizeof(struct zmii_regs));
if (dev->base == NULL) {
printk(KERN_ERR "%s: Can't map device registers!\n",
Expand Down

0 comments on commit 4e16ada

Please sign in to comment.