mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-24 19:25:07 -04:00
[POWERPC] powermac: 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. powermac platform & macintosh driver changes. Built for pmac32_defconfig, g5_defconfig 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
eeb2b723ef
commit
018a3d1db7
@@ -114,7 +114,7 @@ static void macio_gpio_init_one(struct macio_chip *macio)
|
||||
* we just create them all
|
||||
*/
|
||||
for (gp = NULL; (gp = of_get_next_child(gparent, gp)) != NULL;) {
|
||||
u32 *reg = (u32 *)get_property(gp, "reg", NULL);
|
||||
const u32 *reg = get_property(gp, "reg", NULL);
|
||||
unsigned long offset;
|
||||
if (reg == NULL)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user