spi: pxa2xx: fix Wvoid-pointer-to-enum-cast warning
[platform/kernel/linux-starfive.git] / drivers / spi / spi-pxa2xx.c
index 1bab18a..21f1565 100644 (file)
@@ -1344,7 +1344,7 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev)
 
        match = device_get_match_data(dev);
        if (match)
-               type = (enum pxa_ssp_type)match;
+               type = (uintptr_t)match;
        else if (is_lpss_priv) {
                u32 value;