diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-02-05 13:44:20 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 16:34:13 -0500 |
commit | 1a1689344add3333d28d1b5495d8043a3877d01c (patch) | |
tree | f715e9b5c91ae23d794cea45302f541b939fe09a /drivers/net/phy/phy_device.c | |
parent | a3cc2de9138f1ee1581f55927f33f7d72ed6207d (diff) |
phy devices: use same arg types
sparse complains about differing types from prototype to
definition, so change the u32 to phy_interface_t:
drivers/net/phy/phy_device.c:140:19: error: symbol 'phy_connect' redeclared with different type (originally declared at include/linux/phy.h:362) - incompatible argument 5 (different signedness)
drivers/net/phy/phy_device.c:190:19: error: symbol 'phy_attach' redeclared with different type (originally declared at include/linux/phy.h:360) - incompatible argument 4 (different signedness)
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/phy/phy_device.c')
-rw-r--r-- | drivers/net/phy/phy_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index a4d7529ef415..deda210c844e 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c | |||
@@ -139,7 +139,7 @@ void phy_prepare_link(struct phy_device *phydev, | |||
139 | */ | 139 | */ |
140 | struct phy_device * phy_connect(struct net_device *dev, const char *phy_id, | 140 | struct phy_device * phy_connect(struct net_device *dev, const char *phy_id, |
141 | void (*handler)(struct net_device *), u32 flags, | 141 | void (*handler)(struct net_device *), u32 flags, |
142 | u32 interface) | 142 | phy_interface_t interface) |
143 | { | 143 | { |
144 | struct phy_device *phydev; | 144 | struct phy_device *phydev; |
145 | 145 | ||
@@ -188,7 +188,7 @@ static int phy_compare_id(struct device *dev, void *data) | |||
188 | } | 188 | } |
189 | 189 | ||
190 | struct phy_device *phy_attach(struct net_device *dev, | 190 | struct phy_device *phy_attach(struct net_device *dev, |
191 | const char *phy_id, u32 flags, u32 interface) | 191 | const char *phy_id, u32 flags, phy_interface_t interface) |
192 | { | 192 | { |
193 | struct bus_type *bus = &mdio_bus_type; | 193 | struct bus_type *bus = &mdio_bus_type; |
194 | struct phy_device *phydev; | 194 | struct phy_device *phydev; |