summaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpt2sas_ctl.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2015-02-19 19:22:34 +0300
committerWolfram Sang <wsa@the-dreams.de>2015-02-20 20:01:23 +0300
commit0d8fb59924cf20e7bef2c41f8d4e87127f573546 (patch)
tree9674de914ac8c29d1c17c65ea93fbe2983b4900a /drivers/scsi/mpt2sas/mpt2sas_ctl.c
parentb4ad0510f5d9099487acf2c748b99081ab6ab869 (diff)
downloadlinux-0d8fb59924cf20e7bef2c41f8d4e87127f573546.tar.xz
i2c: ocores: rework clk code to handle NULL cookie
For, !HAVE_CLK the clk API returns a NULL cookie. Rework the initialization code to handle that. If clk_get_rate() delivers 0, we use the fallback mechanisms. The patch is pretty easy when ignoring white space issues (git diff -b). Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Tested-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_ctl.c')
0 files changed, 0 insertions, 0 deletions