]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Feb 2015 19:50:42 +0000 (11:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Feb 2015 19:50:42 +0000 (11:50 -0800)
Pull thermal management fix from Zhang Rui:
 "One patch to fix a problem that all Exynos SoCs will break at boot
  time"

* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
  thermal: exynos: fix: Check if data->tmu_read callback is present before read

drivers/thermal/samsung/exynos_tmu.c

index fbeedc072cc2eb1ec8c84003d90997fdceabe989..933cd80a6bc5693e23da36048461bfd6250ba40b 100644 (file)
@@ -716,7 +716,7 @@ static int exynos_get_temp(void *p, long *temp)
 {
        struct exynos_tmu_data *data = p;
 
-       if (!data)
+       if (!data || !data->tmu_read)
                return -EINVAL;
 
        mutex_lock(&data->lock);