kernel-ark/drivers/w1/masters
Anton Vorontsov fbc357df2e ds1wm: should check for IS_ERR(clk) instead of NULL
On the error condition clk_get() returns ERR_PTR(..), so checking for NULL
doesn't work.  ds1wm module causes a kernel oops when ds1wm clock isn't
registered.

This patch converts NULL check to IS_ERR(), plus uses PTR_ERR()
for the return code.

Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-04 16:35:12 -08:00
..
ds1wm.c ds1wm: should check for IS_ERR(clk) instead of NULL 2008-03-04 16:35:12 -08:00
ds2482.c i2c: normal_i2c can be made const (remaining drivers) 2008-01-27 18:14:47 +01:00
ds2490.c W1: fix memset size error 2007-11-14 18:45:36 -08:00
Kconfig w1-gpio: add GPIO w1 bus master driver 2008-02-06 10:41:15 -08:00
Makefile w1-gpio: add GPIO w1 bus master driver 2008-02-06 10:41:15 -08:00
matrox_w1.c Clean up duplicate includes in drivers/w1/ 2007-10-17 08:42:48 -07:00
w1-gpio.c w1-gpio: add GPIO w1 bus master driver 2008-02-06 10:41:15 -08:00