]> git.baikalelectronics.ru Git - kernel.git/commit
ahci: imx: fix the build warning
authorRichard Zhu <hongxing.zhu@nxp.com>
Wed, 21 Mar 2018 02:37:01 +0000 (10:37 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 21 Mar 2018 15:04:07 +0000 (08:04 -0700)
commit515c64fb8625ff93805ccea8c06c0933a9490169
treef9afe82a0b1cc5525f6a1bd5d8dc9682864fd79a
parent7e187ad08c30becb1e5223f6b76e6160e4556797
ahci: imx: fix the build warning

Add the default as the last entry to fix the following
build warning introduced by commit.
fad5a7b26c1e ("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>
drivers/ata/ahci_imx.c