Add a check for remove callback presence before calling it, to avoid NULL pointer dereference error when attempting to remove a SPMI driver module which does not have the remove callback defined. Jishnu Prakash (1): spmi: Add check for remove callback in spmi_drv_remove API drivers/spmi/spmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4