diff options
author | Richard Zhu <hongxing.zhu@nxp.com> | 2018-03-21 05:37:01 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-03-21 18:04:07 +0300 |
commit | 3d6f22b74d919a5f32a6093666e85be110cc06de (patch) | |
tree | f9afe82a0b1cc5525f6a1bd5d8dc9682864fd79a /drivers/ata | |
parent | 9ab27d1d35fda0c5fce624083e92546a8545e7e5 (diff) | |
download | linux-3d6f22b74d919a5f32a6093666e85be110cc06de.tar.xz |
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 <hongxing.zhu@nxp.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ahci_imx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index 577458fe4aa9..1c69e88c5a13 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); |