mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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 <jonathanh@nvidia.com> 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 <svcacv@nvidia.com> Reviewed-by: Brad Griffis <bgriffis@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a14b439800
commit
48061dcb5d
@@ -396,17 +396,10 @@ static const struct rtc_class_ops nvvrs_rtc_ops = {
|
|||||||
static int nvvrs_rtc_probe(struct platform_device *pdev)
|
static int nvvrs_rtc_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct nvvrs_rtc_info *info;
|
struct nvvrs_rtc_info *info;
|
||||||
struct device_node *np;
|
|
||||||
struct device *parent;
|
struct device *parent;
|
||||||
struct i2c_client *client;
|
struct i2c_client *client;
|
||||||
int ret = 0;
|
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);
|
info = devm_kzalloc(&pdev->dev, sizeof(struct nvvrs_rtc_info), GFP_KERNEL);
|
||||||
if (!info) {
|
if (!info) {
|
||||||
dev_err(&pdev->dev, "Failed to allocate memory\n");
|
dev_err(&pdev->dev, "Failed to allocate memory\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user