You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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:
committed by
Paul Mackerras
parent
6c2d046980
commit
a7edd0e676
@@ -141,10 +141,10 @@ static void ams_worker(struct work_struct *work)
|
||||
int ams_sensor_attach(void)
|
||||
{
|
||||
int result;
|
||||
u32 *prop;
|
||||
const u32 *prop;
|
||||
|
||||
/* Get orientation */
|
||||
prop = (u32*)get_property(ams_info.of_node, "orientation", NULL);
|
||||
prop = get_property(ams_info.of_node, "orientation", NULL);
|
||||
if (!prop)
|
||||
return -ENODEV;
|
||||
ams_info.orient1 = *prop;
|
||||
|
||||
@@ -263,7 +263,7 @@ int __init ams_i2c_init(struct device_node *np)
|
||||
{
|
||||
char *tmp_bus;
|
||||
int result;
|
||||
u32 *prop;
|
||||
const u32 *prop;
|
||||
|
||||
mutex_lock(&ams_info.lock);
|
||||
|
||||
@@ -276,7 +276,7 @@ int __init ams_i2c_init(struct device_node *np)
|
||||
ams_info.bustype = BUS_I2C;
|
||||
|
||||
/* look for bus either using "reg" or by path */
|
||||
prop = (u32*)get_property(ams_info.of_node, "reg", NULL);
|
||||
prop = get_property(ams_info.of_node, "reg", NULL);
|
||||
if (!prop) {
|
||||
result = -ENODEV;
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ static void ams_pmu_exit(void)
|
||||
|
||||
int __init ams_pmu_init(struct device_node *np)
|
||||
{
|
||||
u32 *prop;
|
||||
const u32 *prop;
|
||||
int result;
|
||||
|
||||
mutex_lock(&ams_info.lock);
|
||||
@@ -160,7 +160,7 @@ int __init ams_pmu_init(struct device_node *np)
|
||||
ams_info.bustype = BUS_HOST;
|
||||
|
||||
/* Get PMU command, should be 0x4e, but we can never know */
|
||||
prop = (u32*)get_property(ams_info.of_node, "reg", NULL);
|
||||
prop = get_property(ams_info.of_node, "reg", NULL);
|
||||
if (!prop) {
|
||||
result = -ENODEV;
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user