From: Pankaj Dubey Date: Thu, 18 Sep 2014 09:42:20 +0000 (+0530) Subject: regmap: fix NULL pointer dereference in regmap_get_val_endian X-Git-Tag: fixes-for-v3.18-merge-window~32^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e64b6ccc1e46932768e3bb8974fc2e5589bca7a;p=pandora-kernel.git regmap: fix NULL pointer dereference in regmap_get_val_endian Recents commits for getting reg endianness causing NULL pointer dereference if dev is passed NULL in regmap_init_mmio. This patch fixes this issue, and allows to parse reg endianness only if dev and dev->of_node exist. Signed-off-by: Pankaj Dubey Signed-off-by: Mark Brown --- Reading git-diff-tree failed