video: tegra: dc: correct typo to parse property
Prafull Suryawanshi [Wed, 9 Dec 2015 09:21:13 +0000 (14:21 +0530)]
It was typo mistake to add ! in front of of_find_property()
which caused boardinfo as null caused issue in dsi pad register
write. This change fixes it and now boardinfo read correct.

bug 1708374

Change-Id: I1a92089ddccc1eb2c365dd7d20dda8f0eccb2b71
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/843440
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
(cherry picked from commit 28f1bcbfa67eca917d0bf44f038096c7c0d5fd90)
Reviewed-on: http://git-master/r/924575

drivers/video/tegra/dc/of_dc.c

index c83db52..1d8a359 100644 (file)
@@ -1575,7 +1575,7 @@ static struct device_node *parse_dsi_settings(struct platform_device *ndev,
                        dsi->phy_timing.t_tago_ns);
        }
 
-       if (!of_find_property(np_dsi_panel,
+       if (of_find_property(np_dsi_panel,
                "nvidia,dsi-boardinfo", NULL)) {
                of_property_read_u32_index(np_dsi_panel,
                        "nvidia,dsi-boardinfo", 0,