[DRIVERS] Minor fix in linux/of.h

The linux compatible of_get_property() and of_find_property()
are blindly updating "lenp" retrurn pointer hence this patch
ensures that "lenp" is not-NULL before updating.

Signed-off-by: Anup Patel <anup@brainfault.org>