diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-14 14:36:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 15:41:52 -0400 |
commit | eb4d84f18598211ccfdecc0a7f14a048cb86e657 (patch) | |
tree | 0baff9c1bd5a93a85c014292d940e8db6e9bd719 /drivers | |
parent | c6b44e50b8958d9bfe3003c81e70d9a53852ae52 (diff) |
ibm_newemac annotations (iomem, NULL noise)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ibm_newemac/core.c | 2 | ||||
-rw-r--r-- | drivers/net/ibm_newemac/rgmii.c | 12 | ||||
-rw-r--r-- | drivers/net/ibm_newemac/tah.c | 4 | ||||
-rw-r--r-- | drivers/net/ibm_newemac/zmii.c | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/ibm_newemac/core.c b/drivers/net/ibm_newemac/core.c index 7a5aabd01e05..0de3aa2a2e44 100644 --- a/drivers/net/ibm_newemac/core.c +++ b/drivers/net/ibm_newemac/core.c | |||
@@ -1950,7 +1950,7 @@ static u32 emac_ethtool_get_rx_csum(struct net_device *ndev) | |||
1950 | { | 1950 | { |
1951 | struct emac_instance *dev = netdev_priv(ndev); | 1951 | struct emac_instance *dev = netdev_priv(ndev); |
1952 | 1952 | ||
1953 | return dev->tah_dev != 0; | 1953 | return dev->tah_dev != NULL; |
1954 | } | 1954 | } |
1955 | 1955 | ||
1956 | static int emac_get_regs_len(struct emac_instance *dev) | 1956 | static int emac_get_regs_len(struct emac_instance *dev) |
diff --git a/drivers/net/ibm_newemac/rgmii.c b/drivers/net/ibm_newemac/rgmii.c index 3f57d6cd26e2..de416951a435 100644 --- a/drivers/net/ibm_newemac/rgmii.c +++ b/drivers/net/ibm_newemac/rgmii.c | |||
@@ -84,7 +84,7 @@ static inline u32 rgmii_mode_mask(int mode, int input) | |||
84 | int __devinit rgmii_attach(struct of_device *ofdev, int input, int mode) | 84 | int __devinit rgmii_attach(struct of_device *ofdev, int input, int mode) |
85 | { | 85 | { |
86 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 86 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
87 | struct rgmii_regs *p = dev->base; | 87 | struct rgmii_regs __iomem *p = dev->base; |
88 | 88 | ||
89 | RGMII_DBG(dev, "attach(%d)" NL, input); | 89 | RGMII_DBG(dev, "attach(%d)" NL, input); |
90 | 90 | ||
@@ -113,7 +113,7 @@ int __devinit rgmii_attach(struct of_device *ofdev, int input, int mode) | |||
113 | void rgmii_set_speed(struct of_device *ofdev, int input, int speed) | 113 | void rgmii_set_speed(struct of_device *ofdev, int input, int speed) |
114 | { | 114 | { |
115 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 115 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
116 | struct rgmii_regs *p = dev->base; | 116 | struct rgmii_regs __iomem *p = dev->base; |
117 | u32 ssr; | 117 | u32 ssr; |
118 | 118 | ||
119 | mutex_lock(&dev->lock); | 119 | mutex_lock(&dev->lock); |
@@ -135,7 +135,7 @@ void rgmii_set_speed(struct of_device *ofdev, int input, int speed) | |||
135 | void rgmii_get_mdio(struct of_device *ofdev, int input) | 135 | void rgmii_get_mdio(struct of_device *ofdev, int input) |
136 | { | 136 | { |
137 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 137 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
138 | struct rgmii_regs *p = dev->base; | 138 | struct rgmii_regs __iomem *p = dev->base; |
139 | u32 fer; | 139 | u32 fer; |
140 | 140 | ||
141 | RGMII_DBG2(dev, "get_mdio(%d)" NL, input); | 141 | RGMII_DBG2(dev, "get_mdio(%d)" NL, input); |
@@ -156,7 +156,7 @@ void rgmii_get_mdio(struct of_device *ofdev, int input) | |||
156 | void rgmii_put_mdio(struct of_device *ofdev, int input) | 156 | void rgmii_put_mdio(struct of_device *ofdev, int input) |
157 | { | 157 | { |
158 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 158 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
159 | struct rgmii_regs *p = dev->base; | 159 | struct rgmii_regs __iomem *p = dev->base; |
160 | u32 fer; | 160 | u32 fer; |
161 | 161 | ||
162 | RGMII_DBG2(dev, "put_mdio(%d)" NL, input); | 162 | RGMII_DBG2(dev, "put_mdio(%d)" NL, input); |
@@ -177,7 +177,7 @@ void rgmii_put_mdio(struct of_device *ofdev, int input) | |||
177 | void __devexit rgmii_detach(struct of_device *ofdev, int input) | 177 | void __devexit rgmii_detach(struct of_device *ofdev, int input) |
178 | { | 178 | { |
179 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 179 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
180 | struct rgmii_regs *p = dev->base; | 180 | struct rgmii_regs __iomem *p = dev->base; |
181 | 181 | ||
182 | mutex_lock(&dev->lock); | 182 | mutex_lock(&dev->lock); |
183 | 183 | ||
@@ -242,7 +242,7 @@ static int __devinit rgmii_probe(struct of_device *ofdev, | |||
242 | } | 242 | } |
243 | 243 | ||
244 | rc = -ENOMEM; | 244 | rc = -ENOMEM; |
245 | dev->base = (struct rgmii_regs *)ioremap(regs.start, | 245 | dev->base = (struct rgmii_regs __iomem *)ioremap(regs.start, |
246 | sizeof(struct rgmii_regs)); | 246 | sizeof(struct rgmii_regs)); |
247 | if (dev->base == NULL) { | 247 | if (dev->base == NULL) { |
248 | printk(KERN_ERR "%s: Can't map device registers!\n", | 248 | printk(KERN_ERR "%s: Can't map device registers!\n", |
diff --git a/drivers/net/ibm_newemac/tah.c b/drivers/net/ibm_newemac/tah.c index e05c7e81efb6..f161fb100e8e 100644 --- a/drivers/net/ibm_newemac/tah.c +++ b/drivers/net/ibm_newemac/tah.c | |||
@@ -42,7 +42,7 @@ void __devexit tah_detach(struct of_device *ofdev, int channel) | |||
42 | void tah_reset(struct of_device *ofdev) | 42 | void tah_reset(struct of_device *ofdev) |
43 | { | 43 | { |
44 | struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); | 44 | struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); |
45 | struct tah_regs *p = dev->base; | 45 | struct tah_regs __iomem *p = dev->base; |
46 | int n; | 46 | int n; |
47 | 47 | ||
48 | /* Reset TAH */ | 48 | /* Reset TAH */ |
@@ -108,7 +108,7 @@ static int __devinit tah_probe(struct of_device *ofdev, | |||
108 | } | 108 | } |
109 | 109 | ||
110 | rc = -ENOMEM; | 110 | rc = -ENOMEM; |
111 | dev->base = (struct tah_regs *)ioremap(regs.start, | 111 | dev->base = (struct tah_regs __iomem *)ioremap(regs.start, |
112 | sizeof(struct tah_regs)); | 112 | sizeof(struct tah_regs)); |
113 | if (dev->base == NULL) { | 113 | if (dev->base == NULL) { |
114 | printk(KERN_ERR "%s: Can't map device registers!\n", | 114 | printk(KERN_ERR "%s: Can't map device registers!\n", |
diff --git a/drivers/net/ibm_newemac/zmii.c b/drivers/net/ibm_newemac/zmii.c index d06312901848..2219ec2740e0 100644 --- a/drivers/net/ibm_newemac/zmii.c +++ b/drivers/net/ibm_newemac/zmii.c | |||
@@ -79,7 +79,7 @@ static inline u32 zmii_mode_mask(int mode, int input) | |||
79 | int __devinit zmii_attach(struct of_device *ofdev, int input, int *mode) | 79 | int __devinit zmii_attach(struct of_device *ofdev, int input, int *mode) |
80 | { | 80 | { |
81 | struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 81 | struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
82 | struct zmii_regs *p = dev->base; | 82 | struct zmii_regs __iomem *p = dev->base; |
83 | 83 | ||
84 | ZMII_DBG(dev, "init(%d, %d)" NL, input, *mode); | 84 | ZMII_DBG(dev, "init(%d, %d)" NL, input, *mode); |
85 | 85 | ||
@@ -250,7 +250,7 @@ static int __devinit zmii_probe(struct of_device *ofdev, | |||
250 | } | 250 | } |
251 | 251 | ||
252 | rc = -ENOMEM; | 252 | rc = -ENOMEM; |
253 | dev->base = (struct zmii_regs *)ioremap(regs.start, | 253 | dev->base = (struct zmii_regs __iomem *)ioremap(regs.start, |
254 | sizeof(struct zmii_regs)); | 254 | sizeof(struct zmii_regs)); |
255 | if (dev->base == NULL) { | 255 | if (dev->base == NULL) { |
256 | printk(KERN_ERR "%s: Can't map device registers!\n", | 256 | printk(KERN_ERR "%s: Can't map device registers!\n", |