summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/bw2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/bw2.c')
-rw-r--r--drivers/video/fbdev/bw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/bw2.c b/drivers/video/fbdev/bw2.c
index 6403ae07970d..9cbadcd18b25 100644
--- a/drivers/video/fbdev/bw2.c
+++ b/drivers/video/fbdev/bw2.c
@@ -306,7 +306,7 @@ static int bw2_probe(struct platform_device *op)
if (!par->regs)
goto out_release_fb;
- if (!of_find_property(dp, "width", NULL)) {
+ if (!of_property_present(dp, "width")) {
err = bw2_do_default_mode(par, info, &linebytes);
if (err)
goto out_unmap_regs;