PCI: mediatek: Explicitly request exclusive reset control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 19 Jul 2017 15:26:00 +0000 (17:26 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Aug 2017 13:23:55 +0000 (08:23 -0500)
Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting
reset lines") started to transition the reset control request API calls to
explicitly state whether the driver needs exclusive or shared reset control
behavior. Convert all drivers requesting exclusive resets to the explicit
API call so the temporary transition helpers can be removed.

No functional changes.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Ryder Lee <ryder.lee@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
drivers/pci/host/pcie-mediatek.c

index 5a9d8589ea0bdf0de9bcbb48c08ada1795316fc5..9c9f89bcf24ce21fe5527e96d54f32c182274373 100644 (file)
@@ -303,7 +303,7 @@ static int mtk_pcie_parse_ports(struct mtk_pcie *pcie,
        }
 
        snprintf(name, sizeof(name), "pcie-rst%d", index);
-       port->reset = devm_reset_control_get_optional(dev, name);
+       port->reset = devm_reset_control_get_optional_exclusive(dev, name);
        if (PTR_ERR(port->reset) == -EPROBE_DEFER)
                return PTR_ERR(port->reset);