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 <jonathanh@nvidia.com>
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 <svcacv@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2023-02-28 19:21:52 +00:00
committed by mobile promotions
parent 6fb4e1b127
commit b601a41408

View File

@@ -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 <linux/i2c.h>
@@ -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 = {