From: Richard Zhu Date: Wed, 21 Mar 2018 02:37:01 +0000 (+0800) Subject: ahci: imx: fix the build warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3d6f22b74d919a5f32a6093666e85be110cc06de;p=linux.git ahci: imx: fix the build warning Add the default as the last entry to fix the following build warning introduced by commit. e5878732a521 ("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 Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index 577458fe4aa98..1c69e88c5a138 100644 --- a/drivers/ata/ahci_imx.c +++ b/drivers/ata/ahci_imx.c @@ -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);