diff options
Diffstat (limited to 'drivers/mtd/maps/sun_uflash.c')
| -rw-r--r-- | drivers/mtd/maps/sun_uflash.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/sun_uflash.c b/drivers/mtd/maps/sun_uflash.c index 6c0c91bfec05..860b19f77090 100644 --- a/drivers/mtd/maps/sun_uflash.c +++ b/drivers/mtd/maps/sun_uflash.c @@ -112,7 +112,7 @@ static int uflash_probe(struct platform_device *op)  	/* Flashprom must have the "user" property in order to  	 * be used by this driver.  	 */ -	if (!of_find_property(dp, "user", NULL)) +	if (!of_property_read_bool(dp, "user"))  		return -ENODEV;  	return uflash_devinit(op, dp);  |