spi_imx->devtype_data->intctrl(spi_imx, 0);
master->dev.of_node = pdev->dev.of_node;
++ +++ ret = spi_bitbang_start(&spi_imx->bitbang);
++ +++ if (ret) {
++ +++ dev_err(&pdev->dev, "bitbang start failed with %d\n", ret);
++ +++ goto out_clk_put;
++ +++ }
- if (!spi_imx->slave_mode) {
- if (!master->cs_gpios) {
- dev_err(&pdev->dev, "No CS GPIOs available\n");
- ret = -EINVAL;
- goto out_clk_put;
- }
-
+ /* Request GPIO CS lines, if any */
+ if (!spi_imx->slave_mode && master->cs_gpios) {
for (i = 0; i < master->num_chipselect; i++) {
if (!gpio_is_valid(master->cs_gpios[i]))
continue;