Skip to content

Commit 3d6f22b

Browse files
Richard Zhuhtejun
authored andcommitted
ahci: imx: fix the build warning
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 9ab27d1 commit 3d6f22b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/ata/ahci_imx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ static void imx_sata_disable(struct ahci_host_priv *hpriv)
490490
IMX6Q_GPR13_SATA_MPLL_CLK_EN,
491491
!IMX6Q_GPR13_SATA_MPLL_CLK_EN);
492492
break;
493+
494+
default:
495+
break;
493496
}
494497

495498
clk_disable_unprepare(imxpriv->sata_ref_clk);

0 commit comments

Comments
 (0)