ARM: msm: reorder soc device register
Soc device register needs to take place in an arch_initcall
because it requires support which is not available very early.
Also update the return type for socinfo_init as it is not
required to be returning a device pointer.
Change-Id: I535754c75dbb158dadb730c7ab1beee7486976bd
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c
index 57c548e..e3b42bc 100644
--- a/arch/arm/mach-msm/board-qsd8x50.c
+++ b/arch/arm/mach-msm/board-qsd8x50.c
@@ -2521,7 +2521,7 @@
msm_shared_ram_phys = MSM_SHARED_RAM_PHYS;
msm_map_qsd8x50_io();
qsd8x50_allocate_memory_regions();
- if (IS_ERR_OR_NULL(socinfo_init()))
+ if (socinfo_init() < 0)
pr_err("socinfo_init() failed!\n");
}