staging: comedi: report success/failure of autoconfig
authorBernd Porr <mail@berndporr.me.uk>
Tue, 7 Jan 2014 21:42:25 +0000 (21:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 18:51:54 +0000 (10:51 -0800)
commitbcb6232d090c82e41d6bce9474e031bfd948fcdb
tree3ca997146ba6b18d305181986bf02eb075fb6d6f
parent52ef9e7cb317fcb7f8b63f1bec7271e40341ce98
staging: comedi: report success/failure of autoconfig

Added success message to the driver autoconfig and error
message in case it fails. A success message is required
so that the user can find out which comedi driver has been
associated with which udev device. This also makes troubleshooting
much easier when more than one card is in the computer or
there is a mix of USB and PCI devices.
As Ian suggested we should report both the driver and the board
which might have different names, especially if one driver covers a
range of different boards.

Signed-off-by: Bernd Porr <mail@berndporr.me.uk>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers.c