From: Devin Heitmueller Date: Tue, 7 Aug 2012 01:47:01 +0000 (-0300) Subject: [media] xc5000: don't invoke auto calibration unless we really did reset tuner X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~3^2^2~537 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc7a74bad1ae1d68a1a9999634baeb4bae277a92;p=pandora-kernel.git [media] xc5000: don't invoke auto calibration unless we really did reset tuner The current code invokes the auto calibration of the tuner whenever the init routine is called (whenever the DVB frontend opens the device). However we should really only be invoking the calibration if we actually did reset the device and reload the firmware. Rework the routine to only do calibration if reset and firmware load was performed. Also because the called function is now a no-op if the firmware is already loaded, the caller no longer needs to invoke is_firmware_loaded(). Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed