Lines Matching refs:ret
151 int ret;
155 ret = clk_set_rate(host->clk, priv->clkrate);
156 if (ret)
159 ret = clk_prepare_enable(host->clk);
160 if (ret)
167 return ret;
207 int ret;
209 ret = hisi_spi_nor_op_reg(nor, opcode, len, FMC_OP_READ_DATA_EN);
210 if (ret)
211 return ret;
274 int ret;
279 ret = hisi_spi_nor_dma_transfer(nor,
281 if (ret) {
283 return ret;
297 int ret;
303 ret = hisi_spi_nor_dma_transfer(nor,
305 if (ret) {
307 return ret;
340 int ret;
353 ret = of_property_read_u32(np, "reg", &priv->chipselect);
354 if (ret) {
357 return ret;
360 ret = of_property_read_u32(np, "spi-max-frequency",
362 if (ret) {
365 return ret;
371 ret = spi_nor_scan(nor, NULL, &hwcaps);
372 if (ret)
373 return ret;
377 ret = mtd_device_register(mtd, NULL, 0);
378 if (ret)
379 return ret;
398 int ret;
401 ret = hisi_spi_nor_register(np, host);
402 if (ret) {
418 return ret;
425 int ret;
446 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
447 if (ret) {
449 return ret;
457 ret = clk_prepare_enable(host->clk);
458 if (ret)
459 return ret;
463 ret = hisi_spi_nor_register_all(host);
464 if (ret)
468 return ret;