host->cleanup = hisi_spi_cleanup;
host->transfer_one = hisi_spi_transfer_one;
host->handle_err = hisi_spi_handle_err;
- host->dev.fwnode = dev->fwnode;
host->min_speed_hz = DIV_ROUND_UP(host->max_speed_hz, CLK_DIV_MAX);
hisi_spi_hw_init(hs);
static int synquacer_spi_probe(struct platform_device *pdev)
{
- struct device_node *np = pdev->dev.of_node;
struct spi_controller *host;
struct synquacer_spi *sspi;
int ret;
goto disable_clk;
}
- host->dev.of_node = np;
- host->dev.fwnode = pdev->dev.fwnode;
host->auto_runtime_pm = true;
host->bus_num = pdev->id;