]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: tegra: fix runtime PM error handling
authorStefan Agner <stefan@agner.ch>
Thu, 21 Jun 2018 13:19:44 +0000 (16:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jun 2018 13:16:27 +0000 (21:16 +0800)
commit3bc4985a947a3e60059f073a92e5e85997d9bdcf
tree807485b2a7b7490810e6e6a770d469b92580e387
parentecd0f257b69ab59189ba611821f8261352b241f0
usb: xhci: tegra: fix runtime PM error handling

The address-of operator will always evaluate to true. However,
power should be explicitly disabled if no power domain is used.

Remove the address-of operator.

Fixes: bd04b8cb8454 ("usb: xhci: tegra: Add support for managing powergates")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c