Skip to content

Commit

Permalink
ahci: imx: fix the build warning
Browse files Browse the repository at this point in the history
Add the default as the last entry to fix the following
build warning introduced by commit.
e587873 ("ahci: imx: add the imx6qp ahci sata support")

drivers/ata/ahci_imx.c: In function 'imx_sata_disable':
drivers/ata/ahci_imx.c:478:2: warning: enumeration value 'AHCI_IMX53'
not handled in switch [-Wswitch]
  switch (imxpriv->type) {
	    ^~~~~~

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Richard Zhu authored and Tejun Heo committed Mar 21, 2018
1 parent 9ab27d1 commit 3d6f22b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/ata/ahci_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ static void imx_sata_disable(struct ahci_host_priv *hpriv)
IMX6Q_GPR13_SATA_MPLL_CLK_EN,
!IMX6Q_GPR13_SATA_MPLL_CLK_EN);
break;

default:
break;
}

clk_disable_unprepare(imxpriv->sata_ref_clk);
Expand Down

0 comments on commit 3d6f22b

Please sign in to comment.