sparc: Commonize get_one_property() implementations.
Add final len assignment in sparc64's get_one_property() (it's necessary to avoid unchecked return value warnings on the sparc32 side), and mark name argument const on sparc32's copy. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -196,7 +196,7 @@ static char * __init build_full_name(struct device_node *dp)
|
||||
return n;
|
||||
}
|
||||
|
||||
static char * __init get_one_property(phandle node, char *name)
|
||||
static char * __init get_one_property(phandle node, const char *name)
|
||||
{
|
||||
char *buf = "<NULL>";
|
||||
int len;
|
||||
|
Reference in New Issue
Block a user