lkml.org 
[lkml]   [2021]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.13 148/800] crypto: nx - add missing MODULE_DEVICE_TABLE
    Date
    From: Bixuan Cui <cuibixuan@huawei.com>

    [ Upstream commit 06676aa1f455c74e3ad1624cea3acb9ed2ef71ae ]

    This patch adds missing MODULE_DEVICE_TABLE definition which generates
    correct modalias for automatic loading of this driver when it is built
    as an external module.

    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/crypto/nx/nx-842-pseries.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/crypto/nx/nx-842-pseries.c b/drivers/crypto/nx/nx-842-pseries.c
    index cc8dd3072b8b..8ee547ee378e 100644
    --- a/drivers/crypto/nx/nx-842-pseries.c
    +++ b/drivers/crypto/nx/nx-842-pseries.c
    @@ -1069,6 +1069,7 @@ static const struct vio_device_id nx842_vio_driver_ids[] = {
    {"ibm,compression-v1", "ibm,compression"},
    {"", ""},
    };
    +MODULE_DEVICE_TABLE(vio, nx842_vio_driver_ids);

    static struct vio_driver nx842_vio_driver = {
    .name = KBUILD_MODNAME,
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-07-12 10:40    [W:2.347 / U:0.816 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site