[POWERPC] netdevices: Constify & voidify get_property()
Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powerpc-specific network device driver changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
294ef16a2e
commit
1a2509c946
@@ -113,7 +113,7 @@ static int __devinit mace_probe(struct macio_dev *mdev, const struct of_device_i
|
||||
struct device_node *mace = macio_get_of_node(mdev);
|
||||
struct net_device *dev;
|
||||
struct mace_data *mp;
|
||||
unsigned char *addr;
|
||||
const unsigned char *addr;
|
||||
int j, rev, rc = -EBUSY;
|
||||
|
||||
if (macio_resource_count(mdev) != 3 || macio_irq_count(mdev) != 3) {
|
||||
|
Reference in New Issue
Block a user