diff mbox series

[-next] crypto: keembay - fix module autoloading

Message ID 20240814024406.3875287-1-liaochen4@huawei.com
State New
Headers show
Series [-next] crypto: keembay - fix module autoloading | expand

Commit Message

Liao Chen Aug. 14, 2024, 2:44 a.m. UTC
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
 drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Liao Chen Aug. 19, 2024, 12:21 p.m. UTC | #1
On 2024/8/14 10:44, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
>   drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c b/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
> index c2dfca73fe4e..e54c79890d44 100644
> --- a/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
> +++ b/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
> @@ -1150,6 +1150,7 @@ static const struct of_device_id kmb_ocs_hcu_of_match[] = {
>   	},
>   	{}
>   };
> +MODULE_DEVICE_TABLE(of, kmb_ocs_hcu_of_match);
>   
>   static void kmb_ocs_hcu_remove(struct platform_device *pdev)
>   {
Gentle ping

Thanks,
Chen
Alessandrelli, Daniele Aug. 19, 2024, 1:14 p.m. UTC | #2
On Mon, 2024-08-19 at 20:21 +0800, liaochen (A) wrote:
> On 2024/8/14 10:44, Liao Chen wrote:
> > Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> > based on the alias from of_device_id table.
> > 
> > Signed-off-by: Liao Chen <liaochen4@huawei.com>

Acked-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com>

> > ---
> >   drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c | 1 +
> >   1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
> > b/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
> > index c2dfca73fe4e..e54c79890d44 100644
> > --- a/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
> > +++ b/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
> > @@ -1150,6 +1150,7 @@ static const struct of_device_id
> > kmb_ocs_hcu_of_match[] = {
> >   	},
> >   	{}
> >   };
> > +MODULE_DEVICE_TABLE(of, kmb_ocs_hcu_of_match);
> >   
> >   static void kmb_ocs_hcu_remove(struct platform_device *pdev)
> >   {
> Gentle ping
> 
> Thanks,
> Chen
>
Herbert Xu Aug. 24, 2024, 1:49 p.m. UTC | #3
On Wed, Aug 14, 2024 at 02:44:06AM +0000, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
>  drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c | 1 +
>  1 file changed, 1 insertion(+)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c b/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
index c2dfca73fe4e..e54c79890d44 100644
--- a/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
+++ b/drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
@@ -1150,6 +1150,7 @@  static const struct of_device_id kmb_ocs_hcu_of_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, kmb_ocs_hcu_of_match);
 
 static void kmb_ocs_hcu_remove(struct platform_device *pdev)
 {