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)
commitee781b7ff3d8ab93bf99b1c3e1f0a29dda2a63e5
treeabfda8330f09bed621d251c77319b50c85595ec1
parent7f6e3aad5ab31c310b36bf0edcd305305b20e2a8
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
This page took 0.025183 seconds and 5 git commands to generate.