On Mon, Mar 29, 2021 at 04:58:36PM +0800, Tian Tao wrote: > + spi_data = (struct davinci_spi_of_data *) > + of_device_get_match_data(&pdev->dev); > + if (!spi_data) If we need to cast away from void * that's most likely pointing at a bug.