From 6e64b6ccc1e46932768e3bb8974fc2e5589bca7a Mon Sep 17 00:00:00 2001 From: Pankaj Dubey Date: Thu, 18 Sep 2014 15:12:20 +0530 Subject: [PATCH] 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-format-patch failed