can: fix return value from can_get_bittiming()
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 23 Apr 2014 20:10:55 +0000 (22:10 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:30:39 +0000 (22:30 +0200)
commitd482443244b820f03a5a07d1bca6a0f5e2b4804c
treec0ac6fbf063907aa48578c039e85090712651568
parenta9edcdedbd3d8f3ffcd7bdcab5812707a25e554e
can: fix return value from can_get_bittiming()

When trying to set a data bitrate on non CAN FD devices the 'ip' tool
answers with:

RTNETLINK answers: Unknown error 524

Rename '-ENOTSUPP' to '-EOPNOTSUPP' so that 'ip' answers correctly:

       RTNETLINK answers: Operation not supported

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c