Skip to content

Commit

Permalink
spi/ti-qspi: Fix return from mmap path
Browse files Browse the repository at this point in the history
mmap resource requirement is only for memory mapped operations.
If the user does not populate mmap resource, dont call return,
instead we go on for normal spi mode operations.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Sourav Poddar authored and Mark Brown committed Mar 10, 2014
1 parent 38dbfb5 commit 9304f51
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/spi/spi-ti-qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
if (res_mmap == NULL) {
dev_err(&pdev->dev,
"memory mapped resource not required\n");
return -ENODEV;
}
}

Expand Down

0 comments on commit 9304f51

Please sign in to comment.