mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
spi/bitbang: don't error out if there is no setup callback provided
It's perfectly valid not to have a setup callback when the probe routine does all the needed things. So don't even check for this case and trust the caller. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
c7abc19ca6
commit
52ade73621
1 changed files with 1 additions and 2 deletions
|
|
@ -446,8 +446,7 @@ int spi_bitbang_start(struct spi_bitbang *bitbang)
|
|||
master->setup = spi_bitbang_setup;
|
||||
master->cleanup = spi_bitbang_cleanup;
|
||||
}
|
||||
} else if (!master->setup)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* driver may get busy before register() returns, especially
|
||||
* if someone registered boardinfo for devices
|
||||
|
|
|
|||
Loading…
Reference in a new issue