greybus: BeaglePlay driver needs CRC_CCITT
PATCH 1/1 greybus: BeaglePlay driver needs CRC_CCITT
The gb-beagleplay driver uses crc_ccitt(), so it should select CRC_CCITT to make sure that the function is available.
Fixes these build errors:
s390-linux-ld: drivers/greybus/gb-beagleplay.o: in function `hdlc_append_tx_u8':
gb-beagleplay.c:(.text+0x2c0): undefined reference to `crc_ccitt'
s390-linux-ld: drivers/greybus/gb-beagleplay.o: in function `hdlc_rx_frame':
gb-beagleplay.c:(.text+0x6a0): undefined reference to `crc_ccitt'
--- drivers/greybus/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/greybus/Kconfig +1 -0
@@ -20,6 +20,7 @@ if GREYBUS config GREYBUS_BEAGLEPLAY tristate "Greybus BeaglePlay driver" depends on SERIAL_DEV_BUS + select CRC_CCITT help Select this option if you have a BeaglePlay where CC1352 co-processor acts as Greybus SVC.
Quoted 25 lines · Randy Dunlap
The gb-beagleplay driver uses
crc_ccitt(), so it should selectCRC_CCITTto make sure that the function is available.Fixes these build errors:
s390-linux-ld:
drivers/greybus/gb-beagleplay.o: in function `hdlc_append_tx_u8':
gb-beagleplay.c:(.text+0x2c0): undefined reference to `crc_ccitt'
s390-linux-ld:drivers/greybus/gb-beagleplay.o: in function `hdlc_rx_frame':
gb-beagleplay.c:(.text+0x6a0): undefined reference to `crc_ccitt'Fixes ec558bbfea67 ("greybus: Add BeaglePlay Linux Driver")Signed-off-by Randy Dunlap <[email protected]>Cc Ayush Singh <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Cc Johan Hovold <[email protected]>Cc Alex Elder <[email protected]>--- drivers/greybus/Kconfig | 1 + 1 file changed, 1 insertion(+)diff -- a/drivers/greybus/Kconfig b/drivers/greybus/Kconfig
drivers/greybus/Kconfig if GREYBUS · line 26
Quoted 7 lines
drivers/greybus/Kconfig +1
-0@@ -20,6 +20,7 @@ if GREYBUS config GREYBUS_BEAGLEPLAY tristate "Greybus BeaglePlay driver" depends on SERIAL_DEV_BUS + select CRC_CCITT help Select this option if you have a BeaglePlay where CC1352 co-processor acts as Greybus SVC.
Thanks.
Ayush Singh