From: Laxman Dewangan Date: Fri, 9 Nov 2012 09:05:22 +0000 (+0530) Subject: spi: Dont call master->setup if not populated X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~24^2~10^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caae070c48f39b4f7312e7473f6d3576f426e7fb;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed