]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: nx - don't register pSeries driver if ENODEV
authorDan Streetman <ddstreet@ieee.org>
Wed, 22 Jul 2015 18:26:34 +0000 (14:26 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jul 2015 10:14:30 +0000 (18:14 +0800)
commit889c96376435302a28e779d08661ac1ce9db53da
treeabfda8330f09bed621d251c77319b50c85595ec1
parentc08f7dee9462ecf4c9c6d0ef230204ca2172c645
crypto: nx - don't register pSeries driver if ENODEV

Don't register the pSeries driver when parsing the device tree returns
ENODEV.

The nx842_probe() function in the pSeries driver returns error instead
of registering as a crypto compression driver, when it receives an
error return value from the nx842_OF_upd() function that probes the
device tree nodes, except when ENODEV is returned.  However ENODEV
should not be a special case and the driver should not register when
there is no hw device, or the hw device is disabled.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-842-pseries.c