staging:iio:resolver:ad2s90 fix registration of null pointer
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 5 Oct 2011 14:27:56 +0000 (15:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 5 Oct 2011 20:47:46 +0000 (13:47 -0700)
commit72a86ccd3a4b60dacddc97095e13f32ee6117314
tree3b2dbded0dc8a3d7ee93d6f0958845af0c1e3749
parent4a70513074091e814fd5444c75f572691b7ba588
staging:iio:resolver:ad2s90 fix registration of null pointer

When the new allocation code was introduced a stray pointer
to iio_dev structure was left in the chip state structure.
This was never set but was then registered with the core.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/resolver/ad2s90.c