summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/pwm/pwm-brcmstb.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/pwm/pwm-brcmstb.c')
-rw-r--r--kernel/drivers/pwm/pwm-brcmstb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/pwm/pwm-brcmstb.c b/kernel/drivers/pwm/pwm-brcmstb.c
index 423ce087c..5d5adee16 100644
--- a/kernel/drivers/pwm/pwm-brcmstb.c
+++ b/kernel/drivers/pwm/pwm-brcmstb.c
@@ -274,8 +274,8 @@ static int brcmstb_pwm_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
p->base = devm_ioremap_resource(&pdev->dev, res);
- if (!p->base) {
- ret = -ENOMEM;
+ if (IS_ERR(p->base)) {
+ ret = PTR_ERR(p->base);
goto out_clk;
}