cbus: handle possible errors on cbus_send/receive_bit
authorFelipe Balbi <felipe.balbi@nokia.com>
Tue, 27 Apr 2010 01:20:43 +0000 (18:20 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 27 Apr 2010 01:26:36 +0000 (18:26 -0700)
gpio_direction_input might fail and we have
to handle that possibility. While at that,
also add the device pointer to struct cbus_host
and use that for printing debugging messages and
make cbus_receive_bit return int.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
drivers/cbus/cbus.c

Simple merge