staging: fsl-mc/dpio: Propagate error code
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Thu, 15 Jun 2017 08:55:06 +0000 (03:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jun 2017 16:41:33 +0000 (18:41 +0200)
commit30c9dbf3174e75e8c721aa2c7d47bf8fcd40d8cb
treeefc9201cf96b5cf92ac1d5aff89f18e5328db29b
parent125178d1ebd6d76a5fb152cfb3cd50a3316cf3ba
staging: fsl-mc/dpio: Propagate error code

dpaa2_io_service_register() returns zero even if
qbman_swp_CDAN_set() encountered an error. Fix this
by propagating the error code so the caller is informed
data availability notifications are not properly set
for a channel.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Acked-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dpio/dpio-service.c