Laxman Dewangan caae070c48 spi: Dont call master->setup if not populated
Currently the master->setup() is called unconditionally.
The assumption is that every driver need to implement this
callback. This encourages drivers to populate empty functions
to prevent crashing.

This patch prevents the call of master->setup() if it is not
populated.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-11-09 16:46:48 +00:00
..
2012-08-17 22:56:18 +01:00
2011-11-09 23:02:12 +08:00
2012-04-10 14:11:34 -06:00
2012-10-02 17:26:42 -07:00
2012-04-10 14:11:34 -06:00
2012-10-02 17:26:42 -07:00