]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/therm_adt746x: Don't access non-existing register
authorJean Delvare <khali@linux-fr.org>
Wed, 14 Oct 2009 05:31:32 +0000 (05:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 30 Oct 2009 06:21:32 +0000 (17:21 +1100)
commitb9e6a702c9082d79f966dc4bf17631607757ab21
treedcaeb6dc3d52f94110ba7a85d045b9a247b51a19
parent43155f9a00b2fc6f09667ad35c92240ddca3f52b
powerpc/therm_adt746x: Don't access non-existing register

The ADT746x don't have any register at sub-address 0, so better use an
existing register for the initial test read.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Colin Leroy <colin@colino.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/macintosh/therm_adt746x.c