[POWERPC] get_property returns const
This just tidies up some of the remains. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

gecommit door
Paul Mackerras

bovenliggende
6c2d046980
commit
a7edd0e676
@@ -55,7 +55,7 @@ static struct device_node *get_gpio(char *name,
|
||||
int *gpioactiveptr)
|
||||
{
|
||||
struct device_node *np, *gpio;
|
||||
u32 *reg;
|
||||
const u32 *reg;
|
||||
const char *audio_gpio;
|
||||
|
||||
*gpioptr = -1;
|
||||
@@ -84,7 +84,7 @@ static struct device_node *get_gpio(char *name,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
reg = (u32 *)get_property(np, "reg", NULL);
|
||||
reg = get_property(np, "reg", NULL);
|
||||
if (!reg)
|
||||
return NULL;
|
||||
|
||||
@@ -96,7 +96,7 @@ static struct device_node *get_gpio(char *name,
|
||||
if (*gpioptr < 0x50)
|
||||
*gpioptr += 0x50;
|
||||
|
||||
reg = (u32 *)get_property(np, "audio-gpio-active-state", NULL);
|
||||
reg = get_property(np, "audio-gpio-active-state", NULL);
|
||||
if (!reg)
|
||||
/* Apple seems to default to 1, but
|
||||
* that doesn't seem right at least on most
|
||||
|
Verwijs in nieuw issue
Block a user