Thu, Jun 01, 2023 at 08:34:09AM +0300, Nikita Shubin kirjoitti: > - find register range from the device tree > - provide clock access via of > - use_dma as a DT node ... > +static struct ep93xx_spi_info *ep93xx_spi_get_platdata(struct platform_device *pdev) > +{ > + struct device_node *np = pdev->dev.of_node; > + if (np && of_property_read_bool(np, "ep9301,use-dma")) Excessive check for np to be NULL, this is implied by the _read_bool() anyway. > + dt_spi_info.use_dma = 1; > + return &dt_spi_info; > +} ... > + master->dev.of_node = pdev->dev.of_node; device_set_node(); -- With Best Regards, Andy Shevchenko