summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pcie-designware.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-01-07 23:15:00 +0100
committerJens Axboe <axboe@kernel.dk>2020-01-16 21:49:09 -0700
commit6fedae3cad8b122c8b0afb26a0569d9910255edd (patch)
tree86b2dd526ec09a8c36d545495946588922b62af2 /drivers/pci/controller/dwc/pcie-designware.c
parented87ad196dab6a757352d39c4c3fbc599340fe2c (diff)
ata: brcm: fix reset controller API usage
While fixing another issue in this driver I noticed it uses IS_ERR_OR_NULL(), which is almost always a mistake. Change the driver to use the proper devm_reset_control_get_optional() interface instead and remove the checks except for the one that checks for a failure in that function. Fixes: 2b2c47d9e1fe ("ata: ahci_brcm: Allow optional reset controller to be used") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-designware.c')
0 files changed, 0 insertions, 0 deletions