From: Doug Anderson Date: Thu, 1 May 2014 18:50:16 +0000 (-0700) Subject: regulator: tps65090: Fix tps65090 crash on Tegra Dalmore X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~28^2~1^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c122c5b68273cf0153d1dc510889728cf71e8ce3;p=pandora-kernel.git regulator: tps65090: Fix tps65090 crash on Tegra Dalmore The patch (60e91b5 regulator: tps65090: Allow setting the overcurrent wait time) introduced a crash on Tegra Dalmore. On Dalmore the device tree doesn't have an entry for all of the FETs so it leaves tps_pdata NULL in some cases. Add a check for NULL like the rest of the code does. Reported-by: Olof Johansson Signed-off-by: Doug Anderson Tested-by: Stephen Warren Signed-off-by: Mark Brown --- Reading git-diff-tree failed