diff options
author | Stefan Potyra <Stefan.Potyra@elektrobit.com> | 2018-05-02 10:55:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-26 08:08:08 +0800 |
commit | aec3dd5ef1f0fb570027fe3a42bbc1d3d1f1828f (patch) | |
tree | d89ce9b10682b52c23a0c03b38961ee6f5932e74 /fs | |
parent | 139cd53baf08d80db81eb32a72dc24501cb8f296 (diff) |
w1: mxc_w1: Enable clock before calling clk_get_rate() on it
commit 955bc61328dc0a297fb3baccd84e9d3aee501ed8 upstream.
According to the API, you may only call clk_get_rate() after actually
enabling it.
Found by Linux Driver Verification project (linuxtesting.org).
Fixes: a5fd9139f74c ("w1: add 1-wire master driver for i.MX27 / i.MX31")
Signed-off-by: Stefan Potyra <Stefan.Potyra@elektrobit.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions