]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
MIPS: pci-mt7620: explicitly request exclusive reset control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 19 Jul 2017 15:25:07 +0000 (17:25 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Aug 2017 13:21:51 +0000 (15:21 +0200)
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>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/16785/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci-mt7620.c

index 628c5132b3d8b254ad0c590ef9a606af05412972..4e633c1e7ff3e7834b93195ee2f1a829fbed3971 100644 (file)
@@ -291,7 +291,7 @@ static int mt7620_pci_probe(struct platform_device *pdev)
                                                          IORESOURCE_MEM, 1);
        u32 val = 0;
 
-       rstpcie0 = devm_reset_control_get(&pdev->dev, "pcie0");
+       rstpcie0 = devm_reset_control_get_exclusive(&pdev->dev, "pcie0");
        if (IS_ERR(rstpcie0))
                return PTR_ERR(rstpcie0);