mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
ata: ahci-imx: Fix Wvoid-pointer-to-enum-cast warning
"imxpriv->type" is an enum, thus cast of pointer on 64-bit compile test with clang W=1 causes: ahci_imx.c:872:18: error: cast to smaller integer type 'enum ahci_imx_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
This commit is contained in:
parent
602f661282
commit
4afc71c225
1 changed files with 1 additions and 1 deletions
|
|
@ -869,7 +869,7 @@ static int imx_ahci_probe(struct platform_device *pdev)
|
|||
imxpriv->ahci_pdev = pdev;
|
||||
imxpriv->no_device = false;
|
||||
imxpriv->first_time = true;
|
||||
imxpriv->type = (enum ahci_imx_type)device_get_match_data(dev);
|
||||
imxpriv->type = (unsigned long)device_get_match_data(dev);
|
||||
|
||||
imxpriv->sata_clk = devm_clk_get(dev, "sata");
|
||||
if (IS_ERR(imxpriv->sata_clk)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue