Merge tag 'irq-fixes-4.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/maz...
[linux-2.6-microblaze.git] / drivers / pwm / pwm-brcmstb.c
index 423ce08..8063cff 100644 (file)
@@ -270,12 +270,11 @@ static int brcmstb_pwm_probe(struct platform_device *pdev)
        p->chip.ops = &brcmstb_pwm_ops;
        p->chip.base = -1;
        p->chip.npwm = 2;
-       p->chip.can_sleep = true;
 
        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;
        }