diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-05-25 11:30:46 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-06-03 15:24:04 +0300 |
commit | f5a6bf077126a1ac8a5c489022531e72a088603e (patch) | |
tree | e6b8575b9c84b3b1590a3ae1336a9ef38c7607e8 /drivers/soc/ixp4xx/ixp4xx-npe.c | |
parent | 7551a074700a4093f5556a5ae51c1f83ea6b96ba (diff) | |
download | linux-f5a6bf077126a1ac8a5c489022531e72a088603e.tar.xz |
crypto: ixp4xx - convert to platform driver
The ixp4xx_crypto driver traditionally registers a bare platform
device without attaching it to a driver, and detects the hardware
at module init time by reading an SoC specific hardware register.
Change this to the conventional method of registering the platform
device from the platform code itself when the device is present,
turning the module_init/module_exit functions into probe/release
driver callbacks.
This enables compile-testing as well as potentially having ixp4xx
coexist with other ARMv5 platforms in the same kernel in the future.
Cc: Corentin Labbe <clabbe@baylibre.com>
Tested-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/soc/ixp4xx/ixp4xx-npe.c')
0 files changed, 0 insertions, 0 deletions