Skip to content

Commit 983e375

Browse files
jonhuntergregkh
authored andcommitted
usb: xhci: tegra: Fix OF boolean read warning
After commit c141ecc ("of: Warn when of_property_read_bool() is used on non-boolean properties") was added, the following warning is observed for the Tegra XHCI driver ... OF: /bus@0/usb@3610000: Read of boolean property 'power-domains' with a value. Previously, of_property_read_bool() was used to determine if a property was present but has now been replaced by of_property_present(). The warning is meant to prevent new users but this user existed before the change was made. Fix this by updating the Tegra XHCI driver to use of_property_present() function to determine if the 'power-domains' property is present. Signed-off-by: Jon Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent eb12482 commit 983e375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/host/xhci-tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ static int tegra_xusb_probe(struct platform_device *pdev)
16681668
goto put_padctl;
16691669
}
16701670

1671-
if (!of_property_read_bool(pdev->dev.of_node, "power-domains")) {
1671+
if (!of_property_present(pdev->dev.of_node, "power-domains")) {
16721672
tegra->host_rst = devm_reset_control_get(&pdev->dev,
16731673
"xusb_host");
16741674
if (IS_ERR(tegra->host_rst)) {

0 commit comments

Comments
 (0)