Re: [PATCH] usb: xhci: tegra: Fix OF boolean read warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 16, 2025 at 03:38:29PM +0000, Jon Hunter wrote:
> After commit c141ecc3cecd ("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.
> 
> Fixes: c141ecc3cecd ("of: Warn when of_property_read_bool() is used on non-boolean properties")
> Signed-off-by: Jon Hunter <jonathanh@xxxxxxxxxx>
> ---
>  drivers/usb/host/xhci-tegra.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Thierry Reding <treding@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux