Skip to content
Commit ed2f8511 authored by zhaoxiao's avatar zhaoxiao Committed by Wolfram Sang
Browse files

i2c: bcm-kona: Fix return value in probe()



When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.

Signed-off-by: default avatarzhaoxiao <long870912@gmail.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent e7f42648
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment