]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: use boolean values with device_init_wakeup()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 17 Dec 2024 07:13:26 +0000 (08:13 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 9 Jan 2025 17:29:24 +0000 (18:29 +0100)
device_init_wakeup() second argument is a bool type. Use proper boolean
values when calling it to match the type and to produce unambiguous code
which is easier to understand.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20241217071331.3607-2-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
53 files changed:
drivers/rtc/rtc-88pm80x.c
drivers/rtc/rtc-88pm860x.c
drivers/rtc/rtc-amlogic-a4.c
drivers/rtc/rtc-armada38x.c
drivers/rtc/rtc-as3722.c
drivers/rtc/rtc-at91rm9200.c
drivers/rtc/rtc-at91sam9.c
drivers/rtc/rtc-cadence.c
drivers/rtc/rtc-cmos.c
drivers/rtc/rtc-cpcap.c
drivers/rtc/rtc-cros-ec.c
drivers/rtc/rtc-da9055.c
drivers/rtc/rtc-ds3232.c
drivers/rtc/rtc-isl1208.c
drivers/rtc/rtc-jz4740.c
drivers/rtc/rtc-loongson.c
drivers/rtc/rtc-lp8788.c
drivers/rtc/rtc-lpc32xx.c
drivers/rtc/rtc-max77686.c
drivers/rtc/rtc-max8925.c
drivers/rtc/rtc-max8997.c
drivers/rtc/rtc-meson-vrtc.c
drivers/rtc/rtc-mpc5121.c
drivers/rtc/rtc-mt6397.c
drivers/rtc/rtc-mv.c
drivers/rtc/rtc-mxc.c
drivers/rtc/rtc-mxc_v2.c
drivers/rtc/rtc-omap.c
drivers/rtc/rtc-palmas.c
drivers/rtc/rtc-pic32.c
drivers/rtc/rtc-pm8xxx.c
drivers/rtc/rtc-pxa.c
drivers/rtc/rtc-rc5t583.c
drivers/rtc/rtc-rc5t619.c
drivers/rtc/rtc-renesas-rtca3.c
drivers/rtc/rtc-rk808.c
drivers/rtc/rtc-s3c.c
drivers/rtc/rtc-s5m.c
drivers/rtc/rtc-sa1100.c
drivers/rtc/rtc-sc27xx.c
drivers/rtc/rtc-sh.c
drivers/rtc/rtc-spear.c
drivers/rtc/rtc-sun6i.c
drivers/rtc/rtc-sunplus.c
drivers/rtc/rtc-tegra.c
drivers/rtc/rtc-test.c
drivers/rtc/rtc-tps6586x.c
drivers/rtc/rtc-tps65910.c
drivers/rtc/rtc-twl.c
drivers/rtc/rtc-wm831x.c
drivers/rtc/rtc-wm8350.c
drivers/rtc/rtc-xgene.c
drivers/rtc/rtc-zynqmp.c

index 5c39cf252392de52d86015b75d44193a7f1e2a2c..a3e52a5a708ff36bfe8f918e3d86464c4c9ca955 100644 (file)
@@ -308,7 +308,7 @@ static int pm80x_rtc_probe(struct platform_device *pdev)
        /* remember whether this power up is caused by PMIC RTC or not */
        info->rtc_dev->dev.platform_data = &pdata->rtc_wakeup;
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        return 0;
 out_rtc:
index 814230d6184271fba205d96489b5e73016d8ba15..964cd048fcdba7ba7d44c8eeb9e7a7f2a8a9d6c2 100644 (file)
@@ -326,7 +326,7 @@ static int pm860x_rtc_probe(struct platform_device *pdev)
        schedule_delayed_work(&info->calib_work, VRTC_CALIB_INTERVAL);
 #endif /* VRTC_CALIBRATION */
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        return 0;
 }
index 2278b4c98a711feba81798eebbd43944a252b89d..09d78c2cc691815ab7270fa439cb6f3c2b77be58 100644 (file)
@@ -361,7 +361,7 @@ static int aml_rtc_probe(struct platform_device *pdev)
                                     "failed to get_enable rtc sys clk\n");
        aml_rtc_init(rtc);
 
-       device_init_wakeup(dev, 1);
+       device_init_wakeup(dev, true);
        platform_set_drvdata(pdev, rtc);
 
        rtc->rtc_dev = devm_rtc_allocate_device(dev);
@@ -391,7 +391,7 @@ static int aml_rtc_probe(struct platform_device *pdev)
        return 0;
 err_clk:
        clk_disable_unprepare(rtc->sys_clk);
-       device_init_wakeup(dev, 0);
+       device_init_wakeup(dev, false);
 
        return ret;
 }
@@ -426,7 +426,7 @@ static void aml_rtc_remove(struct platform_device *pdev)
        struct aml_rtc_data *rtc = dev_get_drvdata(&pdev->dev);
 
        clk_disable_unprepare(rtc->sys_clk);
-       device_init_wakeup(&pdev->dev, 0);
+       device_init_wakeup(&pdev->dev, false);
 }
 
 static const struct aml_rtc_config a5_rtc_config = {
index 569c1054d6b0bcd3be4263a35804981b94b79cf3..713fa0d077cde3a21bd41d5746f052ee5515a011 100644 (file)
@@ -527,7 +527,7 @@ static __init int armada38x_rtc_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, rtc);
 
        if (rtc->irq != -1)
-               device_init_wakeup(&pdev->dev, 1);
+               device_init_wakeup(&pdev->dev, true);
        else
                clear_bit(RTC_FEATURE_ALARM, rtc->rtc_dev->features);
 
index 0f21af27f4cfecdc9d1656f6d3045c38dba55e58..9682d6457b7fd1ad6546625cf286cad19b290f0a 100644 (file)
@@ -187,7 +187,7 @@ static int as3722_rtc_probe(struct platform_device *pdev)
                return ret;
        }
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        as3722_rtc->rtc = devm_rtc_device_register(&pdev->dev, "as3722-rtc",
                                &as3722_rtc_ops, THIS_MODULE);
index 9b3898b8de7cf79cb0ec3e523f851b292b679290..f6b0102a843ad05ecf60ebae056e00ecfeddd1d8 100644 (file)
@@ -528,7 +528,7 @@ static int __init at91_rtc_probe(struct platform_device *pdev)
         * being wake-capable; if it didn't, do that here.
         */
        if (!device_can_wakeup(&pdev->dev))
-               device_init_wakeup(&pdev->dev, 1);
+               device_init_wakeup(&pdev->dev, true);
 
        if (at91_rtc_config->has_correction)
                rtc->ops = &sama5d4_rtc_ops;
index 15b21da2788f63e48876033d1e57d33da629c5b8..38991cca593086a74f18bf9e7e76f209318494d7 100644 (file)
@@ -353,7 +353,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
 
        /* platform setup code should have handled this; sigh */
        if (!device_can_wakeup(&pdev->dev))
-               device_init_wakeup(&pdev->dev, 1);
+               device_init_wakeup(&pdev->dev, true);
 
        platform_set_drvdata(pdev, rtc);
 
index bf2a9a1fdea7443b38e61be046ff8daf1f23303e..8634eea799ab0e1bc92f9920a0a8ed1ede363d27 100644 (file)
@@ -359,7 +359,7 @@ static void cdns_rtc_remove(struct platform_device *pdev)
        struct cdns_rtc *crtc = platform_get_drvdata(pdev);
 
        cdns_rtc_alarm_irq_enable(&pdev->dev, 0);
-       device_init_wakeup(&pdev->dev, 0);
+       device_init_wakeup(&pdev->dev, false);
 
        clk_disable_unprepare(crtc->pclk);
        clk_disable_unprepare(crtc->ref_clk);
index 78f2ce12c75a77172c50956f32572e22078079fa..4bd3a3a04d4444ffcda55638ef7516f3ac6e0211 100644 (file)
@@ -864,7 +864,7 @@ static void acpi_cmos_wake_setup(struct device *dev)
                dev_info(dev, "RTC can wake from S4\n");
 
        /* RTC always wakes from S1/S2/S3, and often S4/STD */
-       device_init_wakeup(dev, 1);
+       device_init_wakeup(dev, true);
 }
 
 static void cmos_check_acpi_rtc_status(struct device *dev,
index afc8fcba8f8885c15730e47fe0a9d3f681e3cba4..568a89e79c11424967d4af239d252a80a073a341 100644 (file)
@@ -295,7 +295,7 @@ static int cpcap_rtc_probe(struct platform_device *pdev)
        }
        disable_irq(rtc->update_irq);
 
-       err = device_init_wakeup(dev, 1);
+       err = device_init_wakeup(dev, true);
        if (err) {
                dev_err(dev, "wakeup initialization failed (%d)\n", err);
                /* ignore error and continue without wakeup support */
index 60a48c3ba3ca50211a39aa5c86018bf557aadcd8..865c2e82c7a5b79b274e1a0baec1135927b0c163 100644 (file)
@@ -337,7 +337,7 @@ static int cros_ec_rtc_probe(struct platform_device *pdev)
                return ret;
        }
 
-       ret = device_init_wakeup(&pdev->dev, 1);
+       ret = device_init_wakeup(&pdev->dev, true);
        if (ret) {
                dev_err(&pdev->dev, "failed to initialize wakeup\n");
                return ret;
index 844168fcae1e210613b6f2abfa9a39eab4ba212b..05adec6b77bff9bd4e8fafc707c3dd4ae18ed4b5 100644 (file)
@@ -288,7 +288,7 @@ static int da9055_rtc_probe(struct platform_device *pdev)
        if (ret & DA9055_RTC_ALM_EN)
                rtc->alarm_enable = 1;
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
                                        &da9055_rtc_ops, THIS_MODULE);
index dd37b055693c0c16d7a02a918ea140884b38808e..19c09c4187462881c0100bcf1107e9f53fc391f3 100644 (file)
@@ -508,7 +508,7 @@ static int ds3232_probe(struct device *dev, struct regmap *regmap, int irq,
                return ret;
 
        if (ds3232->irq > 0)
-               device_init_wakeup(dev, 1);
+               device_init_wakeup(dev, true);
 
        ds3232_hwmon_register(dev, name);
 
index 7b82e4a14b7a23703ebe254af3654fb195d25a4c..f71a6bb77b2a14e0c29db3ba1400af91a1395f46 100644 (file)
@@ -830,7 +830,7 @@ static int isl1208_setup_irq(struct i2c_client *client, int irq)
                                        isl1208_driver.driver.name,
                                        client);
        if (!rc) {
-               device_init_wakeup(&client->dev, 1);
+               device_init_wakeup(&client->dev, true);
                enable_irq_wake(irq);
        } else {
                dev_err(&client->dev,
index bafa7d1b9b883a99e51582bf8ec4a797595ce3b9..44bba356268ca9488a5f4d5da7d5eaf97dbf774a 100644 (file)
@@ -367,7 +367,7 @@ static int jz4740_rtc_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, rtc);
 
-       device_init_wakeup(dev, 1);
+       device_init_wakeup(dev, true);
 
        ret = dev_pm_set_wake_irq(dev, irq);
        if (ret)
index 8d713e563d7c0a70dbda435b65ddd4133c9123ab..6f5f4430c2ae3fc970d0ad5bbbfb381030096465 100644 (file)
@@ -329,7 +329,7 @@ static int loongson_rtc_probe(struct platform_device *pdev)
                                             alarm_irq);
 
                priv->pm_base = regs - priv->config->pm_offset;
-               device_init_wakeup(dev, 1);
+               device_init_wakeup(dev, true);
 
                if (has_acpi_companion(dev))
                        acpi_install_fixed_event_handler(ACPI_EVENT_RTC,
@@ -360,7 +360,7 @@ static void loongson_rtc_remove(struct platform_device *pdev)
                acpi_remove_fixed_event_handler(ACPI_EVENT_RTC,
                                                loongson_rtc_handler);
 
-       device_init_wakeup(dev, 0);
+       device_init_wakeup(dev, false);
        loongson_rtc_alarm_irq_enable(dev, 0);
 }
 
index c0b8fbce10827c33d54f7396474c15d5515870fb..0793d70507f7c6238e3a9deca510ea548b7a2d3d 100644 (file)
@@ -293,7 +293,7 @@ static int lp8788_rtc_probe(struct platform_device *pdev)
        rtc->alarm = lp->pdata ? lp->pdata->alarm_sel : DEFAULT_ALARM_SEL;
        platform_set_drvdata(pdev, rtc);
 
-       device_init_wakeup(dev, 1);
+       device_init_wakeup(dev, true);
 
        rtc->rdev = devm_rtc_device_register(dev, "lp8788_rtc",
                                        &lp8788_rtc_ops, THIS_MODULE);
index 76ad7031a13dd7f37911ea4f655f6219ce8ba283..74280bffe1b07fdbc56192df91ed4af93da13dee 100644 (file)
@@ -257,7 +257,7 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
                        dev_warn(&pdev->dev, "Can't request interrupt.\n");
                        rtc->irq = -1;
                } else {
-                       device_init_wakeup(&pdev->dev, 1);
+                       device_init_wakeup(&pdev->dev, true);
                }
        }
 
index a8f4b645c09d2422ad04c3ff3196fd20cbb05bf1..7bb044d2ac25aeaaf2404b47b7e7bd485ae3d39e 100644 (file)
@@ -770,7 +770,7 @@ static int max77686_rtc_probe(struct platform_device *pdev)
                goto err_rtc;
        }
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        info->rtc_dev = devm_rtc_device_register(&pdev->dev, id->name,
                                        &max77686_rtc_ops, THIS_MODULE);
index 64bb8ac6ef62d5462c3926ae42d49b343f194e64..6ce8afbeac680282a54c0416551faca082ca0bdf 100644 (file)
@@ -270,7 +270,7 @@ static int max8925_rtc_probe(struct platform_device *pdev)
        /* XXX - isn't this redundant? */
        platform_set_drvdata(pdev, info);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        info->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8925-rtc",
                                        &max8925_rtc_ops, THIS_MODULE);
index 20e50d9fdf88230165a3029e49281afa5e065b51..e7618d715bd89323eab69e5fed5060dc4d8e91ff 100644 (file)
@@ -473,7 +473,7 @@ static int max8997_rtc_probe(struct platform_device *pdev)
        max8997_rtc_enable_wtsr(info, true);
        max8997_rtc_enable_smpl(info, true);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        info->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8997-rtc",
                                        &max8997_rtc_ops, THIS_MODULE);
index 648fa362ec447b0072e3f56fa8efd38e234d6e97..5849729f7d01d7ec7868ff3bbdc5ed599aaa8238 100644 (file)
@@ -74,7 +74,7 @@ static int meson_vrtc_probe(struct platform_device *pdev)
        if (IS_ERR(vrtc->io_alarm))
                return PTR_ERR(vrtc->io_alarm);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        platform_set_drvdata(pdev, vrtc);
 
index 6003281316031c2c1d1a63f7bdb05d960c1e741c..b90f8337a7e6ded9279e4ba5e6c3a6a170781fc9 100644 (file)
@@ -303,7 +303,7 @@ static int mpc5121_rtc_probe(struct platform_device *op)
                return PTR_ERR(rtc->regs);
        }
 
-       device_init_wakeup(&op->dev, 1);
+       device_init_wakeup(&op->dev, true);
 
        platform_set_drvdata(op, rtc);
 
index 152699219a2b9e0aa1dff98c72133b63207fc468..6979d225a78e47f73b7652159e73f70c43b4fcde 100644 (file)
@@ -286,7 +286,7 @@ static int mtk_rtc_probe(struct platform_device *pdev)
                return ret;
        }
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        rtc->rtc_dev->ops = &mtk_rtc_ops;
        rtc->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_1900;
index 51029c53624418d6c1c78f340b36060fd2660a68..c27ad626d09fce7c4c3290dc71d4b60a613be972 100644 (file)
@@ -264,7 +264,7 @@ static int __init mv_rtc_probe(struct platform_device *pdev)
        }
 
        if (pdata->irq >= 0)
-               device_init_wakeup(&pdev->dev, 1);
+               device_init_wakeup(&pdev->dev, true);
        else
                clear_bit(RTC_FEATURE_ALARM, pdata->rtc->features);
 
@@ -287,7 +287,7 @@ static void __exit mv_rtc_remove(struct platform_device *pdev)
        struct rtc_plat_data *pdata = platform_get_drvdata(pdev);
 
        if (pdata->irq >= 0)
-               device_init_wakeup(&pdev->dev, 0);
+               device_init_wakeup(&pdev->dev, false);
 
        if (!IS_ERR(pdata->clk))
                clk_disable_unprepare(pdata->clk);
index dbb935dbbd8ab79a43d72043806d2821ca141918..608db97d450c5371e3c3add0048f81f65b7c1fc4 100644 (file)
@@ -377,7 +377,7 @@ static int mxc_rtc_probe(struct platform_device *pdev)
        }
 
        if (pdata->irq >= 0) {
-               device_init_wakeup(&pdev->dev, 1);
+               device_init_wakeup(&pdev->dev, true);
                ret = dev_pm_set_wake_irq(&pdev->dev, pdata->irq);
                if (ret)
                        dev_err(&pdev->dev, "failed to enable irq wake\n");
index 13c041bb79f160a1b348cb4a5ba124cc467aa616..570f27af4732ef6358bb982a82d345410a9811f9 100644 (file)
@@ -302,7 +302,7 @@ static int mxc_rtc_probe(struct platform_device *pdev)
        if (pdata->irq < 0)
                return pdata->irq;
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
        ret = dev_pm_set_wake_irq(&pdev->dev, pdata->irq);
        if (ret)
                dev_err(&pdev->dev, "failed to enable irq wake\n");
index c123778e2d9bcc47bde3eb00a0b80adff790a501..0f90065e352cb160782b553e0f79830a7ac5bc0f 100644 (file)
@@ -920,7 +920,7 @@ static void omap_rtc_remove(struct platform_device *pdev)
                omap_rtc_power_off_rtc = NULL;
        }
 
-       device_init_wakeup(&pdev->dev, 0);
+       device_init_wakeup(&pdev->dev, false);
 
        if (!IS_ERR(rtc->clk))
                clk_disable_unprepare(rtc->clk);
index 7256a88b490c98bf501e67ef1257c7b3418618ca..aecada6bcf8b5ca0b50eb09296d1575c7ff3400d 100644 (file)
@@ -287,7 +287,7 @@ static int palmas_rtc_probe(struct platform_device *pdev)
 
        palmas_rtc->irq = platform_get_irq(pdev, 0);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
        palmas_rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
                                &palmas_rtc_ops, THIS_MODULE);
        if (IS_ERR(palmas_rtc->rtc)) {
index bed3c27e665f32d0cc5becbaf2ad489bff9c74c2..2812da2c50c5141c0b533cb7fc4be37a6d03ea0c 100644 (file)
@@ -330,7 +330,7 @@ static int pic32_rtc_probe(struct platform_device *pdev)
 
        pic32_rtc_enable(pdata, 1);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        pdata->rtc->ops = &pic32_rtcops;
        pdata->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
index 2f32187ecc8d3276a451a317ab83446b7b04ecc8..b2518aea4218f36ba24a5fb660ed11c1dd78940b 100644 (file)
@@ -503,7 +503,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, rtc_dd);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        rtc_dd->rtc = devm_rtc_allocate_device(&pdev->dev);
        if (IS_ERR(rtc_dd->rtc))
index 34d8545c8e155a4496a2ef47bfa32109581d8aa3..62ee6b8f9bcd6b91eb442ef03466b413d671da6e 100644 (file)
@@ -360,7 +360,7 @@ static int __init pxa_rtc_probe(struct platform_device *pdev)
                return ret;
        }
 
-       device_init_wakeup(dev, 1);
+       device_init_wakeup(dev, true);
 
        return 0;
 }
index eecb49bab56ad52f9cdd9eeef35c20881019abab..8ba9cda74acf1a05c215d03171360c36da7094c6 100644 (file)
@@ -245,7 +245,7 @@ static int rc5t583_rtc_probe(struct platform_device *pdev)
                dev_err(&pdev->dev, "IRQ is not free.\n");
                return ret;
        }
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        ricoh_rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
                &rc5t583_rtc_ops, THIS_MODULE);
index 711f62eecd798b9d1daecdf9c0621d2765c38c4b..74d169102074144c9f2db835e64d1caf71cb185b 100644 (file)
@@ -414,7 +414,7 @@ static int rc5t619_rtc_probe(struct platform_device *pdev)
 
                } else {
                        /* enable wake */
-                       device_init_wakeup(&pdev->dev, 1);
+                       device_init_wakeup(&pdev->dev, true);
                        enable_irq_wake(rtc->irq);
                }
        } else {
index d127933bfc8adc4f98ed96f35da8482c8fa2ac75..a056291d388765a0078f9bf7268404f82b454721 100644 (file)
@@ -768,7 +768,7 @@ static int rtca3_probe(struct platform_device *pdev)
        if (ret)
                return ret;
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        priv->rtc_dev = devm_rtc_allocate_device(&pdev->dev);
        if (IS_ERR(priv->rtc_dev))
index 2d9bcb3ce1e3b93b7c67f0c32d0628aba91f8fd9..59b8e9a30fe673d5c42d19fbdc18f5cc10a9489d 100644 (file)
@@ -418,7 +418,7 @@ static int rk808_rtc_probe(struct platform_device *pdev)
                return ret;
        }
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        rk808_rtc->rtc = devm_rtc_allocate_device(&pdev->dev);
        if (IS_ERR(rk808_rtc->rtc))
index c0ac3bdb2f427df3ac218cecce3f3b61562d6d71..58c957eb753d8f145ba968491087452f6138add5 100644 (file)
@@ -456,7 +456,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)
        dev_dbg(&pdev->dev, "s3c2410_rtc: RTCCON=%02x\n",
                readw(info->base + S3C2410_RTCCON));
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        info->rtc = devm_rtc_allocate_device(&pdev->dev);
        if (IS_ERR(info->rtc)) {
index dad294a0ce2aa77e6726a02cc8676bf04bfe028d..36acca5b2639e272dd9baed06ea5582f635702b0 100644 (file)
@@ -729,7 +729,7 @@ static int s5m_rtc_probe(struct platform_device *pdev)
                                info->irq, ret);
                        return ret;
                }
-               device_init_wakeup(&pdev->dev, 1);
+               device_init_wakeup(&pdev->dev, true);
        }
 
        return devm_rtc_register_device(info->rtc_dev);
index 13799b1abca1aeaad8c45d10c2de4c25566311a7..1ad93648d69c0bc39bfe150ab490aea185db5160 100644 (file)
@@ -292,7 +292,7 @@ static int sa1100_rtc_probe(struct platform_device *pdev)
        }
 
        platform_set_drvdata(pdev, info);
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        return sa1100_rtc_init(pdev, info);
 }
index ce7a2ddbbc16b0123d0c159adff998181dd236b8..2b83561d4d2805c7ac39a7066aa3a0b97c93c3cc 100644 (file)
@@ -613,14 +613,14 @@ static int sprd_rtc_probe(struct platform_device *pdev)
                return ret;
        }
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        rtc->rtc->ops = &sprd_rtc_ops;
        rtc->rtc->range_min = 0;
        rtc->rtc->range_max = 5662310399LL;
        ret = devm_rtc_register_device(rtc->rtc);
        if (ret) {
-               device_init_wakeup(&pdev->dev, 0);
+               device_init_wakeup(&pdev->dev, false);
                return ret;
        }
 
index a5df521876ba0a218b58c00dc0e25f06a2372316..9ea40f40188f3e139d64717f804cd95fcd0dfc20 100644 (file)
@@ -611,7 +611,7 @@ static int __init sh_rtc_probe(struct platform_device *pdev)
        if (ret)
                goto err_unmap;
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
        return 0;
 
 err_unmap:
index 26eed927f8b312370fe448c0e37cef48e6406912..959acff8faff0f640a564dd251234bb1f9aa9eab 100644 (file)
@@ -395,7 +395,7 @@ static int spear_rtc_probe(struct platform_device *pdev)
                goto err_disable_clock;
 
        if (!device_can_wakeup(&pdev->dev))
-               device_init_wakeup(&pdev->dev, 1);
+               device_init_wakeup(&pdev->dev, true);
 
        return 0;
 
@@ -411,7 +411,7 @@ static void spear_rtc_remove(struct platform_device *pdev)
 
        spear_rtc_disable_interrupt(config);
        clk_disable_unprepare(config->clk);
-       device_init_wakeup(&pdev->dev, 0);
+       device_init_wakeup(&pdev->dev, false);
 }
 
 #ifdef CONFIG_PM_SLEEP
index e681c1745866e7f8790b9af97550897079846578..e5e6013d080e6dd988ebb585dbd865a25a8a5fc6 100644 (file)
@@ -826,7 +826,7 @@ static int sun6i_rtc_probe(struct platform_device *pdev)
 
        clk_prepare_enable(chip->losc);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        chip->rtc = devm_rtc_allocate_device(&pdev->dev);
        if (IS_ERR(chip->rtc))
index 9b1ce0e8ba27e6f4c78925b46bc13363974632fa..519a06e728d6ca6340c151ebcd68ed0598850f33 100644 (file)
@@ -269,7 +269,7 @@ static int sp_rtc_probe(struct platform_device *plat_dev)
        if (ret)
                goto free_reset_assert;
 
-       device_init_wakeup(&plat_dev->dev, 1);
+       device_init_wakeup(&plat_dev->dev, true);
        dev_set_drvdata(&plat_dev->dev, sp_rtc);
 
        sp_rtc->rtc = devm_rtc_allocate_device(&plat_dev->dev);
@@ -307,7 +307,7 @@ static void sp_rtc_remove(struct platform_device *plat_dev)
 {
        struct sunplus_rtc *sp_rtc = dev_get_drvdata(&plat_dev->dev);
 
-       device_init_wakeup(&plat_dev->dev, 0);
+       device_init_wakeup(&plat_dev->dev, false);
        reset_control_assert(sp_rtc->rstc);
        clk_disable_unprepare(sp_rtc->rtcclk);
 }
index 79a3102c83549ab38a006247d16a3d20acb47f60..46788db899533d9882d4a9a0364588550f853993 100644 (file)
@@ -319,7 +319,7 @@ static int tegra_rtc_probe(struct platform_device *pdev)
        writel(0xffffffff, info->base + TEGRA_RTC_REG_INTR_STATUS);
        writel(0, info->base + TEGRA_RTC_REG_INTR_MASK);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        ret = devm_request_irq(&pdev->dev, info->irq, tegra_rtc_irq_handler,
                               IRQF_TRIGGER_HIGH, dev_name(&pdev->dev),
index 7e0d8fb26465517b5fcc36477fa5dc9a4a366d6c..a68b8c8841023cfd342434df8f9d5a45f443bc62 100644 (file)
@@ -132,7 +132,7 @@ static int test_probe(struct platform_device *plat_dev)
                break;
        default:
                rtd->rtc->ops = &test_rtc_ops;
-               device_init_wakeup(&plat_dev->dev, 1);
+               device_init_wakeup(&plat_dev->dev, true);
        }
 
        timer_setup(&rtd->alarm, test_rtc_alarm_handler, 0);
index e796729fc817c1bd99f4c70b714a346fc1a795d2..54c8429b16bfcc692b1f4d5404f0c42f720e93b4 100644 (file)
@@ -241,7 +241,7 @@ static int tps6586x_rtc_probe(struct platform_device *pdev)
                return ret;
        }
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        platform_set_drvdata(pdev, rtc);
        rtc->rtc = devm_rtc_allocate_device(&pdev->dev);
index 2ea1bbfbbc2aac5c7129706ddafc0649ca391d29..284aa2f0392b3bbc13f0412ff0d4da26522b19f9 100644 (file)
@@ -418,7 +418,7 @@ static int tps65910_rtc_probe(struct platform_device *pdev)
        tps_rtc->irq = irq;
        if (irq != -1) {
                if (device_property_present(tps65910->dev, "wakeup-source"))
-                       device_init_wakeup(&pdev->dev, 1);
+                       device_init_wakeup(&pdev->dev, true);
                else
                        device_set_wakeup_capable(&pdev->dev, 1);
        } else {
index 794429182b34802c1e5ca9752db45429733e202d..e6106e67e1f40d04ad1399fef3ae11797650a8e1 100644 (file)
@@ -572,7 +572,7 @@ static int twl_rtc_probe(struct platform_device *pdev)
                return ret;
 
        platform_set_drvdata(pdev, twl_rtc);
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        twl_rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
                                        &twl_rtc_ops, THIS_MODULE);
index 640833e210575205b985e8295acf65e123386791..218316be942aea9bcdc63cfa170803f8c230d338 100644 (file)
@@ -420,7 +420,7 @@ static int wm831x_rtc_probe(struct platform_device *pdev)
        if (ret & WM831X_RTC_ALM_ENA)
                wm831x_rtc->alarm_enabled = 1;
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        wm831x_rtc->rtc = devm_rtc_allocate_device(&pdev->dev);
        if (IS_ERR(wm831x_rtc->rtc))
index 6797eb4d2e493eb124a62a0239a7d1990c446f19..3bd60d067a5ee216c02fe6736490b6051d4708c7 100644 (file)
@@ -420,7 +420,7 @@ static int wm8350_rtc_probe(struct platform_device *pdev)
                }
        }
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        wm_rtc->rtc = devm_rtc_device_register(&pdev->dev, "wm8350",
                                        &wm8350_rtc_ops, THIS_MODULE);
index 0813ea1a03c273b191498cea2094d16dd31be726..6660b664e8dd3529ae9f2357e26a41bbe5e3fac9 100644 (file)
@@ -174,7 +174,7 @@ static int xgene_rtc_probe(struct platform_device *pdev)
        /* Turn on the clock and the crystal */
        writel(RTC_CCR_EN, pdata->csr_base + RTC_CCR);
 
-       ret = device_init_wakeup(&pdev->dev, 1);
+       ret = device_init_wakeup(&pdev->dev, true);
        if (ret) {
                clk_disable_unprepare(pdata->clk);
                return ret;
@@ -197,7 +197,7 @@ static void xgene_rtc_remove(struct platform_device *pdev)
        struct xgene_rtc_dev *pdata = platform_get_drvdata(pdev);
 
        xgene_rtc_alarm_irq_enable(&pdev->dev, 0);
-       device_init_wakeup(&pdev->dev, 0);
+       device_init_wakeup(&pdev->dev, false);
        clk_disable_unprepare(pdata->clk);
 }
 
index af1abb69d1e324c2eef89e95caac6847091a94a4..625f708a7cafc3581200ca129f676a4e8e5397a1 100644 (file)
@@ -337,7 +337,7 @@ static int xlnx_rtc_probe(struct platform_device *pdev)
 
        xlnx_init_rtc(xrtcdev);
 
-       device_init_wakeup(&pdev->dev, 1);
+       device_init_wakeup(&pdev->dev, true);
 
        return devm_rtc_register_device(xrtcdev->rtc);
 }
@@ -345,7 +345,7 @@ static int xlnx_rtc_probe(struct platform_device *pdev)
 static void xlnx_rtc_remove(struct platform_device *pdev)
 {
        xlnx_rtc_alarm_irq_enable(&pdev->dev, 0);
-       device_init_wakeup(&pdev->dev, 0);
+       device_init_wakeup(&pdev->dev, false);
 }
 
 static int __maybe_unused xlnx_rtc_suspend(struct device *dev)