]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ad7314) Adds missing spi_dev initialization
authorGraeme Smecher <gsmecher@threespeedlogic.com>
Tue, 3 Apr 2012 23:42:21 +0000 (19:42 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Wed, 4 Apr 2012 00:08:28 +0000 (17:08 -0700)
commitd2ef83d757ba3df0baf711375374a6522c4b9e7d
treecbb7b2c9ab82934c0980f7d4a7ce471c50d4405f
parent7a0a52631d63a618b5b09e832e4d26af84f9e840
hwmon: (ad7314) Adds missing spi_dev initialization

This driver was recently moved from IIO (where it worked) to hwmon (where
it doesn't.) This breakage occured because the hwmon version neglected to
correctly initialize a reference to spi_dev in its drvdata. The result is a
segfault every time the temperature is queried.

Signed-off-by: Graeme Smecher <gsmecher@threespeedlogic.com>
Cc: stable@vger.kernel.org # 3.2+
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/ad7314.c