From: Johan Hovold Date: Thu, 19 May 2016 14:20:15 +0000 (+0200) Subject: greybus: audio_apbridgea: fix two return values X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=deda6aaf666706346866b7d828098ba9bacfb742;p=linux-beck.git greybus: audio_apbridgea: fix two return values Errno -ENOSYS is reserved for missing syscalls, replace it with -EOPNOTSUPP for the the two stub operations that used it. Signed-off-by: Johan Hovold Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/audio_apbridgea.c b/drivers/staging/greybus/audio_apbridgea.c index a6e089d2d1a8..361470788a76 100644 --- a/drivers/staging/greybus/audio_apbridgea.c +++ b/drivers/staging/greybus/audio_apbridgea.c @@ -78,7 +78,7 @@ int gb_audio_apbridgea_get_tx_delay(struct gb_connection *connection, __u16 i2s_port, __u32 *delay) { /* TODO: implement */ - return -ENOSYS; + return -EOPNOTSUPP; } EXPORT_SYMBOL_GPL(gb_audio_apbridgea_get_tx_delay); @@ -152,7 +152,7 @@ int gb_audio_apbridgea_get_rx_delay(struct gb_connection *connection, __u16 i2s_port, __u32 *delay) { /* TODO: implement */ - return -ENOSYS; + return -EOPNOTSUPP; } EXPORT_SYMBOL_GPL(gb_audio_apbridgea_get_rx_delay);