summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2014-11-06 15:10:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-07 08:00:29 +0100
commit34828e007709d12b61eb545252db205ef328caf5 (patch)
treec6c7392054132c04010b5a96b235985a37a6e5d0
parent784b352aeeed917f9cf75b3e8fc74aec12a48a01 (diff)
downloadbarebox-34828e007709d12b61eb545252db205ef328caf5.tar.gz
barebox-34828e007709d12b61eb545252db205ef328caf5.tar.xz
blspec: fix incompatible pointer type warning
The warning is correct in that we pass in size_t instead of int. As we are not interested in the size of the property at this point, just remove the assignment. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/blspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/blspec.c b/common/blspec.c
index a4adc48da9..f46a11d44c 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -294,7 +294,7 @@ static bool entry_is_of_compatible(struct blspec_entry *entry)
}
pr_info("ignoring entry with incompatible devicetree \"%s\"\n",
- (char *)of_get_property(root, "compatible", &size));
+ (char *)of_get_property(root, "compatible", NULL));
ret = false;