aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/spi/spi-omap2-mcspi.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-11-09 14:35:22 +0530
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-09 16:46:48 +0000
commitcaae070c48f39b4f7312e7473f6d3576f426e7fb (patch)
tree09afeaeb4cd7b26fa2345f883889d87191575a1b /drivers/spi/spi-omap2-mcspi.c
parentLinux 3.7-rc4 (diff)
downloadwireguard-linux-caae070c48f39b4f7312e7473f6d3576f426e7fb.tar.xz
wireguard-linux-caae070c48f39b4f7312e7473f6d3576f426e7fb.zip
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>
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
0 files changed, 0 insertions, 0 deletions