From 48061dcb5d21e6f157235b48b8be1d3777d819ab Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Mon, 6 Mar 2023 21:48:09 +0000 Subject: [PATCH] rtc: Remove DT check for VRS RTC The VRS RTC driver does not required device-tree because the device is populated by the parent NVIDIA VRS PSEQ driver. Therefore, remove the device-tree check in the probe function of the VRS RTC driver so that it is not necessary to populate the device-tree node for the RTC device. Bug 4006278 Change-Id: I0c5ca81a65109b3f0d5e12465a5496e558c9887c Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2867042 (cherry picked from commit de193f1eec7497164b73b922deddaf216457592c) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2870757 Reviewed-by: svcacv Reviewed-by: Brad Griffis Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert GVS: Gerrit_Virtual_Submit --- drivers/rtc/nvvrs-pseq-rtc.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/rtc/nvvrs-pseq-rtc.c b/drivers/rtc/nvvrs-pseq-rtc.c index 16424338..dfb6f234 100644 --- a/drivers/rtc/nvvrs-pseq-rtc.c +++ b/drivers/rtc/nvvrs-pseq-rtc.c @@ -396,17 +396,10 @@ static const struct rtc_class_ops nvvrs_rtc_ops = { static int nvvrs_rtc_probe(struct platform_device *pdev) { struct nvvrs_rtc_info *info; - struct device_node *np; struct device *parent; struct i2c_client *client; int ret = 0; - np = of_get_child_by_name(pdev->dev.parent->of_node, "rtc"); - if (np && !of_device_is_available(np)) { - dev_err(&pdev->dev, "Missing rtc device node\n"); - return -ENODEV; - } - info = devm_kzalloc(&pdev->dev, sizeof(struct nvvrs_rtc_info), GFP_KERNEL); if (!info) { dev_err(&pdev->dev, "Failed to allocate memory\n");