Staging: ipack/devices/ipoctal: initialize the device in probe function
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 13 Jul 2012 11:33:14 +0000 (13:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2012 02:11:37 +0000 (19:11 -0700)
commit4eed84a8a4731e37254a10adfaad76e69e236b8c
tree5631b94ffc554f702fb30707d802d3ae6bf7c12e
parent1337b07e664c5a40ae0c5cbc13f5da4cf37c870c
Staging: ipack/devices/ipoctal: initialize the device in probe function

Initialize the device when registering it. Sometimes the user access to it
and the device is in an unknown state, so it could fail.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/devices/ipoctal.c