Skip to content

Commit

Permalink
Merge tag 'rtc-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/…
Browse files Browse the repository at this point in the history
…abelloni/linux

Pull RTC updates from Alexandre Belloni:
 "Not much this cycle, there is the conversion to remove_new and many
  small fixes in drivers:

  Subsystem:
   - Convert to platform remove callback returning void

  Drivers:
   - meson-vrtc: fix a firmware display issue"

* tag 'rtc-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: (53 commits)
  rtc: armada38x: use devm_platform_ioremap_resource_byname()
  rtc: sunplus: use devm_platform_ioremap_resource_byname()
  rtc: jz4740: Make sure clock provider gets removed
  rtc: k3: handle errors while enabling wake irq
  rtc: meson-vrtc: Use ktime_get_real_ts64() to get the current time
  dt-bindings: rtc: Drop unneeded quotes
  rtc: pcf8523: remove unnecessary OR operation
  rtc: pcf8523: fix coding-style issues
  rtc: ds1390: mark OF related data as maybe unused
  rtc: omap: include header for omap_rtc_power_off_program prototype
  rtc: sun6i: Use of_property_present() for testing DT property presence
  rtc: mpfs: convert SOC_MICROCHIP_POLARFIRE to ARCH_MICROCHIP_POLARFIRE
  rtc: zynqmp: Convert to platform remove callback returning void
  rtc: xgene: Convert to platform remove callback returning void
  rtc: wm8350: Convert to platform remove callback returning void
  rtc: vt8500: Convert to platform remove callback returning void
  rtc: twl: Convert to platform remove callback returning void
  rtc: tps6586x: Convert to platform remove callback returning void
  rtc: tegra: Convert to platform remove callback returning void
  rtc: sunplus: Convert to platform remove callback returning void
  ...
  • Loading branch information
torvalds committed May 1, 2023
2 parents e0906f1 + e99ab4a commit 3f2a190
Show file tree
Hide file tree
Showing 65 changed files with 122 additions and 197 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Allwinner A10 RTC

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Chen-Yu Tsai <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ properties:
- the Internal Oscillator, at index 2.

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#
- if:
properties:
compatible:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Atmel AT91 RTC

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Alexandre Belloni <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Atmel AT91 RTT

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Alexandre Belloni <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description:
optionally generate RTC alarm interrupts.

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

properties:
compatible:
Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/rtc/faraday,ftrtc010.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ properties:

clock-names:
items:
- const: "PCLK"
- const: "EXTCLK"
- const: PCLK
- const: EXTCLK

required:
- compatible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Microchip RV-3032 RTC

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Alexandre Belloni <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Mstar MSC313e RTC

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Daniel Palmer <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: NUVOTON NCT3018Y Real Time Clock

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Medad CChien <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: NXP PCF2127 Real Time Clock

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Alexandre Belloni <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/rtc/rtc-mxc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Real Time Clock of the i.MX SoCs

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Philippe Reynes <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/rtc/rtc-mxc_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: i.MX53 Secure Real Time Clock (SRTC)

allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

maintainers:
- Patrick Bruenn <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/rtc/sa1100-rtc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ properties:

interrupt-names:
items:
- const: 'rtc 1Hz'
- const: 'rtc alarm'
- const: rtc 1Hz
- const: rtc alarm

required:
- compatible
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/rtc/st,stm32-rtc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ properties:
maxItems: 1

st,syscfg:
$ref: "/schemas/types.yaml#/definitions/phandle-array"
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
minItems: 3
maxItems: 3
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/rtc/ti,k3-rtc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: |
This RTC appears in the AM62x family of SoCs.
allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

properties:
compatible:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/rtc/trivial-rtc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: |
possibly an interrupt line.
allOf:
- $ref: "rtc.yaml#"
- $ref: rtc.yaml#

properties:
compatible:
Expand Down
2 changes: 1 addition & 1 deletion drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1970,7 +1970,7 @@ config RTC_DRV_MSC313

config RTC_DRV_POLARFIRE_SOC
tristate "Microchip PolarFire SoC built-in RTC"
depends on SOC_MICROCHIP_POLARFIRE
depends on ARCH_MICROCHIP_POLARFIRE
help
If you say yes here you will get support for the
built-in RTC on Polarfire SoC.
Expand Down
5 changes: 2 additions & 3 deletions drivers/rtc/rtc-88pm80x.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,10 @@ static int pm80x_rtc_probe(struct platform_device *pdev)
return ret;
}

static int pm80x_rtc_remove(struct platform_device *pdev)
static void pm80x_rtc_remove(struct platform_device *pdev)
{
struct pm80x_rtc_info *info = platform_get_drvdata(pdev);
pm80x_free_irq(info->chip, info->irq, info);
return 0;
}

static struct platform_driver pm80x_rtc_driver = {
Expand All @@ -330,7 +329,7 @@ static struct platform_driver pm80x_rtc_driver = {
.pm = &pm80x_rtc_pm_ops,
},
.probe = pm80x_rtc_probe,
.remove = pm80x_rtc_remove,
.remove_new = pm80x_rtc_remove,
};

module_platform_driver(pm80x_rtc_driver);
Expand Down
6 changes: 2 additions & 4 deletions drivers/rtc/rtc-88pm860x.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ static int pm860x_rtc_probe(struct platform_device *pdev)
return 0;
}

static int pm860x_rtc_remove(struct platform_device *pdev)
static void pm860x_rtc_remove(struct platform_device *pdev)
{
struct pm860x_rtc_info *info = platform_get_drvdata(pdev);

Expand All @@ -340,8 +340,6 @@ static int pm860x_rtc_remove(struct platform_device *pdev)
/* disable measurement */
pm860x_set_bits(info->i2c, PM8607_MEAS_EN2, MEAS2_VRTC, 0);
#endif /* VRTC_CALIBRATION */

return 0;
}

#ifdef CONFIG_PM_SLEEP
Expand Down Expand Up @@ -373,7 +371,7 @@ static struct platform_driver pm860x_rtc_driver = {
.pm = &pm860x_rtc_pm_ops,
},
.probe = pm860x_rtc_probe,
.remove = pm860x_rtc_remove,
.remove_new = pm860x_rtc_remove,
};

module_platform_driver(pm860x_rtc_driver);
Expand Down
6 changes: 2 additions & 4 deletions drivers/rtc/rtc-ab8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,20 +392,18 @@ static int ab8500_rtc_probe(struct platform_device *pdev)
return devm_rtc_register_device(rtc);
}

static int ab8500_rtc_remove(struct platform_device *pdev)
static void ab8500_rtc_remove(struct platform_device *pdev)
{
dev_pm_clear_wake_irq(&pdev->dev);
device_init_wakeup(&pdev->dev, false);

return 0;
}

static struct platform_driver ab8500_rtc_driver = {
.driver = {
.name = "ab8500-rtc",
},
.probe = ab8500_rtc_probe,
.remove = ab8500_rtc_remove,
.remove_new = ab8500_rtc_remove,
.id_table = ab85xx_rtc_ids,
};

Expand Down
6 changes: 2 additions & 4 deletions drivers/rtc/rtc-ac100.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,11 @@ static int ac100_rtc_probe(struct platform_device *pdev)
return devm_rtc_register_device(chip->rtc);
}

static int ac100_rtc_remove(struct platform_device *pdev)
static void ac100_rtc_remove(struct platform_device *pdev)
{
struct ac100_rtc_dev *chip = platform_get_drvdata(pdev);

ac100_rtc_unregister_clks(chip);

return 0;
}

static const struct of_device_id ac100_rtc_match[] = {
Expand All @@ -630,7 +628,7 @@ MODULE_DEVICE_TABLE(of, ac100_rtc_match);

static struct platform_driver ac100_rtc_driver = {
.probe = ac100_rtc_probe,
.remove = ac100_rtc_remove,
.remove_new = ac100_rtc_remove,
.driver = {
.name = "ac100-rtc",
.of_match_table = of_match_ptr(ac100_rtc_match),
Expand Down
7 changes: 2 additions & 5 deletions drivers/rtc/rtc-armada38x.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ MODULE_DEVICE_TABLE(of, armada38x_rtc_of_match_table);

static __init int armada38x_rtc_probe(struct platform_device *pdev)
{
struct resource *res;
struct armada38x_rtc *rtc;

rtc = devm_kzalloc(&pdev->dev, sizeof(struct armada38x_rtc),
Expand All @@ -508,12 +507,10 @@ static __init int armada38x_rtc_probe(struct platform_device *pdev)

spin_lock_init(&rtc->lock);

res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rtc");
rtc->regs = devm_ioremap_resource(&pdev->dev, res);
rtc->regs = devm_platform_ioremap_resource_byname(pdev, "rtc");
if (IS_ERR(rtc->regs))
return PTR_ERR(rtc->regs);
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rtc-soc");
rtc->regs_soc = devm_ioremap_resource(&pdev->dev, res);
rtc->regs_soc = devm_platform_ioremap_resource_byname(pdev, "rtc-soc");
if (IS_ERR(rtc->regs_soc))
return PTR_ERR(rtc->regs_soc);

Expand Down
5 changes: 2 additions & 3 deletions drivers/rtc/rtc-asm9260.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,13 @@ static int asm9260_rtc_probe(struct platform_device *pdev)
return ret;
}

static int asm9260_rtc_remove(struct platform_device *pdev)
static void asm9260_rtc_remove(struct platform_device *pdev)
{
struct asm9260_rtc_priv *priv = platform_get_drvdata(pdev);

/* Disable alarm matching */
iowrite32(BM_AMR_OFF, priv->iobase + HW_AMR);
clk_disable_unprepare(priv->clk);
return 0;
}

static const struct of_device_id asm9260_dt_ids[] = {
Expand All @@ -326,7 +325,7 @@ MODULE_DEVICE_TABLE(of, asm9260_dt_ids);

static struct platform_driver asm9260_rtc_driver = {
.probe = asm9260_rtc_probe,
.remove = asm9260_rtc_remove,
.remove_new = asm9260_rtc_remove,
.driver = {
.name = "asm9260-rtc",
.of_match_table = asm9260_dt_ids,
Expand Down
6 changes: 2 additions & 4 deletions drivers/rtc/rtc-at91sam9.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
/*
* Disable and remove the RTC driver
*/
static int at91_rtc_remove(struct platform_device *pdev)
static void at91_rtc_remove(struct platform_device *pdev)
{
struct sam9_rtc *rtc = platform_get_drvdata(pdev);
u32 mr = rtt_readl(rtc, MR);
Expand All @@ -451,8 +451,6 @@ static int at91_rtc_remove(struct platform_device *pdev)
rtt_writel(rtc, MR, mr & ~(AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN));

clk_disable_unprepare(rtc->sclk);

return 0;
}

static void at91_rtc_shutdown(struct platform_device *pdev)
Expand Down Expand Up @@ -531,7 +529,7 @@ MODULE_DEVICE_TABLE(of, at91_rtc_dt_ids);

static struct platform_driver at91_rtc_driver = {
.probe = at91_rtc_probe,
.remove = at91_rtc_remove,
.remove_new = at91_rtc_remove,
.shutdown = at91_rtc_shutdown,
.driver = {
.name = "rtc-at91sam9",
Expand Down
6 changes: 2 additions & 4 deletions drivers/rtc/rtc-brcmstb-waketimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,12 @@ static int brcmstb_waketmr_probe(struct platform_device *pdev)
return ret;
}

static int brcmstb_waketmr_remove(struct platform_device *pdev)
static void brcmstb_waketmr_remove(struct platform_device *pdev)
{
struct brcmstb_waketmr *timer = dev_get_drvdata(&pdev->dev);

unregister_reboot_notifier(&timer->reboot_notifier);
clk_disable_unprepare(timer->clk);

return 0;
}

#ifdef CONFIG_PM_SLEEP
Expand Down Expand Up @@ -382,7 +380,7 @@ static const __maybe_unused struct of_device_id brcmstb_waketmr_of_match[] = {

static struct platform_driver brcmstb_waketmr_driver = {
.probe = brcmstb_waketmr_probe,
.remove = brcmstb_waketmr_remove,
.remove_new = brcmstb_waketmr_remove,
.driver = {
.name = "brcmstb-waketimer",
.pm = &brcmstb_waketmr_pm_ops,
Expand Down
6 changes: 2 additions & 4 deletions drivers/rtc/rtc-cadence.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static int cdns_rtc_probe(struct platform_device *pdev)
return ret;
}

static int cdns_rtc_remove(struct platform_device *pdev)
static void cdns_rtc_remove(struct platform_device *pdev)
{
struct cdns_rtc *crtc = platform_get_drvdata(pdev);

Expand All @@ -363,8 +363,6 @@ static int cdns_rtc_remove(struct platform_device *pdev)

clk_disable_unprepare(crtc->pclk);
clk_disable_unprepare(crtc->ref_clk);

return 0;
}

#ifdef CONFIG_PM_SLEEP
Expand Down Expand Up @@ -404,7 +402,7 @@ static struct platform_driver cdns_rtc_driver = {
.pm = &cdns_rtc_pm_ops,
},
.probe = cdns_rtc_probe,
.remove = cdns_rtc_remove,
.remove_new = cdns_rtc_remove,
};
module_platform_driver(cdns_rtc_driver);

Expand Down
Loading

0 comments on commit 3f2a190

Please sign in to comment.