diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index a60b8cd40198da8d6eb06640a01b73906e774a68..5b92c290e6c6e99dccb24a45cb76d81bfd23e6a8 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -426,7 +426,7 @@ int ahci_platform_init_host(struct platform_device *pdev, } /* prepare host */ - pi.private_data = (void *)hpriv->flags; + pi.private_data = (void *)(unsigned long)hpriv->flags; ahci_save_initial_config(dev, hpriv);