hwmon: (smsc47m1) Fail module loading on error
authorJean Delvare <khali@linux-fr.org>
Wed, 16 Dec 2009 20:38:26 +0000 (21:38 +0100)
committerJean Delvare <khali@linux-fr.org>
Wed, 16 Dec 2009 20:38:26 +0000 (21:38 +0100)
commit3ecf44b312758d10be20539b06b2df5d77d59cdb
tree93b27c2f2463064efbe07be9799b575868f8a28a
parenta0e92d70f35b5fd7da8ec2160cda78b98e2113bc
hwmon: (smsc47m1) Fail module loading on error

If an error occurs during probing, there's no point in keeping the
module in memory. Better fail the module loading early to make the
problem more visible.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Sean Fidler <fidlersean@gmail.com>
drivers/hwmon/smsc47m1.c