summaryrefslogtreecommitdiff
path: root/drivers/of/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r--drivers/of/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index a6f584a7f4a..57534569fbc 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -237,7 +237,7 @@ static int __of_device_is_compatible(const struct device_node *device,
const char *compat)
{
const char* cp;
- int cplen, l;
+ int cplen = 0, l;
cp = __of_get_property(device, "compatible", &cplen);
if (cp == NULL)
@@ -301,7 +301,7 @@ EXPORT_SYMBOL(of_machine_is_compatible);
static int __of_device_is_available(const struct device_node *device)
{
const char *status;
- int statlen;
+ int statlen = 0;
status = __of_get_property(device, "status", &statlen);
if (status == NULL)