From b601a41408e767d0a1946fa0960d7bd8ce692f73 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 28 Feb 2023 19:21:52 +0000 Subject: [PATCH] mfd: nvvrs-pseq: Fix automatic module loading The NVIDIA VRS PSEQ driver is not automatically loaded on boot and this is because the MODULE_DEVICE_TABLE is missing in the driver. Add the MODULE_DEVICE_TABLE for this driver so that the driver is loaded as expected on boot. Bug 3583627 Change-Id: I19316ac7fb26e9cced65d0d7504a5c7f3f49b35f Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2865056 (cherry picked from commit fe3aea29adff6f548dfd29421aa8fa1811401daf) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2866991 Reviewed-by: svcacv Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Bibek Basu GVS: Gerrit_Virtual_Submit --- drivers/mfd/nvidia-vrs-pseq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/nvidia-vrs-pseq.c b/drivers/mfd/nvidia-vrs-pseq.c index afe63c02..0b4bb5d6 100644 --- a/drivers/mfd/nvidia-vrs-pseq.c +++ b/drivers/mfd/nvidia-vrs-pseq.c @@ -2,7 +2,7 @@ /* * Voltage Regulator Specification: Power Sequencer MFD Driver * - * Copyright (C) 2020-2022 NVIDIA CORPORATION. All rights reserved. + * Copyright (C) 2020-2023 NVIDIA CORPORATION. All rights reserved. */ #include @@ -284,6 +284,7 @@ static const struct of_device_id nvvrs_dt_match[] = { { .compatible = "nvidia,vrs-pseq" }, {} }; +MODULE_DEVICE_TABLE(of, nvvrs_dt_match); static struct i2c_driver nvvrs_pseq_driver = { .driver = {