commit | 807828f053f251c65452614a5bd47cd6eae67baf | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Wed Apr 13 08:54:30 2016 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Nov 28 16:45:44 2023 +0000 |
tree | fa1f3d74a119697d916c790fb27b3c2c9b841c38 | |
parent | 38cd56fc9de78bf3c878790785e8c231116ef9d3 [diff] |
i2c: sun6i-p2wi: Prevent potential division by zero [ Upstream commit 5ac61d26b8baff5b2e5a9f3dc1ef63297e4b53e7 ] Make sure we don't OOPS in case clock-frequency is set to 0 in a DT. The variable set here is later used as a divisor. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>