linux-stable/drivers/rtc
Jiasheng Jiang 0e2c26dd11 rtc: wm8350: Handle error for wm8350_register_irq
[ Upstream commit 43f0269b6b ]

As the potential failure of the wm8350_register_irq(),
it should be better to check it and return error if fails.
Also, it need not free 'wm_rtc->rtc' since it will be freed
automatically.

Fixes: 077eaf5b40 ("rtc: rtc-wm8350: add support for WM8350 RTC")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220303085030.291793-1-jiasheng@iscas.ac.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:08:26 +02:00
..
class.c
hctosys.c rtc: hctosys: Add missing range error reporting 2018-11-21 09:24:14 +01:00
interface.c rtc: ensure rtc_set_alarm fails when alarms are not supported 2018-08-03 07:50:23 +02:00
Kconfig rtc: s5m: select REGMAP_I2C 2021-03-03 18:22:45 +01:00
Makefile
nvmem.c
rtc-88pm80x.c rtc: 88pm80x: fix unintended sign extension 2020-01-27 14:46:17 +01:00
rtc-88pm860x.c rtc: 88pm860x: fix possible race condition 2020-04-24 08:01:18 +02:00
rtc-ab-b5ze-s3.c
rtc-ab3100.c
rtc-ab8500.c
rtc-abx80x.c
rtc-ac100.c clk: divider: fix incorrect usage of container_of 2018-04-12 12:32:13 +02:00
rtc-armada38x.c rtc: armada38x: fix possible race condition 2019-11-20 18:00:51 +01:00
rtc-as3722.c
rtc-asm9260.c
rtc-at32ap700x.c
rtc-at91rm9200.c
rtc-at91rm9200.h
rtc-at91sam9.c
rtc-au1xxx.c
rtc-bfin.c
rtc-bq32k.c
rtc-bq4802.c rtc: bq4802: add error handling for devm_ioremap 2018-09-26 08:38:13 +02:00
rtc-brcmstb-waketimer.c rtc: brcmstb-waketimer: fix error handling in brcmstb_waketmr_probe() 2018-03-19 08:42:49 +01:00
rtc-cmos.c rtc: cmos: take rtc_lock while reading from CMOS 2022-01-27 09:00:47 +01:00
rtc-coh901331.c
rtc-core.h
rtc-cpcap.c
rtc-da9052.c
rtc-da9055.c
rtc-da9063.c rtc: da9063: set uie_unsupported when relevant 2019-05-08 07:20:49 +02:00
rtc-davinci.c
rtc-dev.c
rtc-digicolor.c
rtc-dm355evm.c
rtc-ds1216.c
rtc-ds1286.c
rtc-ds1302.c
rtc-ds1305.c
rtc-ds1307.c rtc: ds1307: Fix wday settings for rx8130 2021-05-22 10:57:38 +02:00
rtc-ds1343.c
rtc-ds1347.c
rtc-ds1374.c rtc: ds1374: fix possible race condition 2020-10-01 13:12:38 +02:00
rtc-ds1390.c
rtc-ds1511.c
rtc-ds1553.c
rtc-ds1672.c rtc: ds1672: fix unintended sign extension 2020-01-27 14:46:17 +01:00
rtc-ds1685.c
rtc-ds1742.c
rtc-ds2404.c
rtc-ds3232.c
rtc-efi-platform.c
rtc-efi.c
rtc-em3027.c
rtc-ep93xx.c
rtc-fm3130.c
rtc-ftrtc010.c
rtc-generic.c
rtc-goldfish.c rtc: goldfish: Enable interrupt in set_alarm() when necessary 2020-08-26 10:29:55 +02:00
rtc-hid-sensor-time.c iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-12-17 09:28:49 +01:00
rtc-hym8563.c rtc: hym8563: Return -EINVAL if the time is known to be invalid 2020-02-14 16:32:22 -05:00
rtc-imxdi.c
rtc-isl1208.c
rtc-isl12022.c
rtc-jz4740.c
rtc-lib.c rtc: Fix overflow when converting time64_t to rtc_time 2019-03-27 14:13:55 +09:00
rtc-lp8788.c
rtc-lpc24xx.c
rtc-lpc32xx.c
rtc-ls1x.c
rtc-m41t80.c rtc: m41t80: Correct alarm month range with RTC reads 2019-01-09 17:14:52 +01:00
rtc-m41t93.c
rtc-m41t94.c
rtc-m48t35.c
rtc-m48t59.c
rtc-m48t86.c
rtc-max6900.c
rtc-max6902.c
rtc-max6916.c
rtc-max8907.c
rtc-max8925.c
rtc-max8997.c rtc: max8997: Fix the returned value in case of error in 'max8997_rtc_read_alarm()' 2019-12-17 20:38:03 +01:00
rtc-max8998.c
rtc-max77686.c rtc: max77686: Do not enforce (incorrect) interrupt trigger type 2021-07-28 11:12:15 +02:00
rtc-mc13xxx.c
rtc-mc146818-lib.c rtc: cmos: Evaluate century appropriate 2022-02-08 18:16:30 +01:00
rtc-mcp795.c
rtc-moxart.c
rtc-mpc5121.c
rtc-mrst.c
rtc-msm6242.c rtc: msm6242: Fix reading of 10-hour digit 2020-01-17 19:45:52 +01:00
rtc-mt6397.c rtc: mt6397: fix alarm register overwrite 2020-01-17 19:45:44 +01:00
rtc-mv.c
rtc-mxc.c
rtc-nuc900.c
rtc-omap.c rtc: omap: Use define directive for PIN_CONFIG_ACTIVE_HIGH 2020-04-24 08:00:42 +02:00
rtc-opal.c rtc: opal: Fix OPAL RTC driver OPAL_BUSY loops 2018-05-01 12:58:24 -07:00
rtc-palmas.c
rtc-pcap.c
rtc-pcf2123.c
rtc-pcf2127.c rtc: pcf2127: bugfix: read rtc disables watchdog 2020-01-27 14:46:44 +01:00
rtc-pcf8523.c rtc: pcf8523: set xtal load capacitance from DT 2019-11-06 12:42:56 +01:00
rtc-pcf8563.c rtc: pcf8563: Clear event flags and disable interrupts before requesting irq 2020-01-27 14:46:38 +01:00
rtc-pcf8583.c
rtc-pcf50633.c
rtc-pcf85063.c
rtc-pic32.c
rtc-pl030.c rtc: pl030: fix possible race condition 2019-11-20 17:59:51 +01:00
rtc-pl031.c
rtc-pm8xxx.c rtc: pm8xxx: Fix issue in RTC write path 2020-04-24 08:01:04 +02:00
rtc-proc.c rtc: fix snprintf() checking in is_rtc_hctosys() 2021-07-20 16:17:54 +02:00
rtc-ps3.c
rtc-puv3.c
rtc-pxa.c
rtc-r7301.c
rtc-r9701.c
rtc-rc5t583.c
rtc-rk808.c rtc: rk808: fix possible race condition 2018-05-25 16:18:01 +02:00
rtc-rp5c01.c rtc: rp5c01: fix possible race condition 2018-05-25 16:18:01 +02:00
rtc-rs5c313.c
rtc-rs5c348.c
rtc-rs5c372.c
rtc-rtd119x.c
rtc-rv3029c2.c
rtc-rv8803.c rtc: rv8803: fix the rv8803 id in the OF table 2019-11-20 17:59:39 +01:00
rtc-rx4581.c
rtc-rx6110.c
rtc-rx8010.c rtc: rx8010: don't modify the global rtc ops 2020-11-05 11:07:04 +01:00
rtc-rx8025.c
rtc-rx8581.c
rtc-s3c.c rtc: s3c-rtc: Avoid using broken ALMYEAR register 2019-12-17 20:37:45 +01:00
rtc-s3c.h
rtc-s5m.c
rtc-s35390a.c rtc: s35390a: Change buf's type to u8 in s35390a_init 2019-12-01 09:13:44 +01:00
rtc-sa1100.c
rtc-sa1100.h
rtc-sh.c rtc: sh: Fix invalid alarm warning for non-enabled alarm 2019-05-08 07:20:47 +02:00
rtc-sirfsoc.c
rtc-snvs.c rtc: snvs: fix possible race condition 2019-10-07 18:55:10 +02:00
rtc-spear.c
rtc-st-lpc.c
rtc-starfire.c
rtc-stk17ta8.c
rtc-stm32.c rtc: stm32: Fix unbalanced clk_disable_unprepare() on probe error path 2021-07-20 16:17:29 +02:00
rtc-stmp3xxx.c
rtc-sun4v.c
rtc-sun6i.c rtc: sun6i: Fix memleak in sun6i_rtc_clk_init 2021-01-09 13:37:38 +01:00
rtc-sunxi.c
rtc-sysfs.c
rtc-tegra.c
rtc-test.c
rtc-tile.c
rtc-tps6586x.c rtc: tps6586x: fix possible race condition 2018-08-03 07:50:32 +02:00
rtc-tps65910.c rtc: tps65910: Correct driver module alias 2021-09-22 11:45:23 +02:00
rtc-tps80031.c
rtc-twl.c
rtc-tx4939.c rtc: tx4939: avoid unintended sign extension on a 24 bit shift 2018-05-25 16:18:01 +02:00
rtc-v3020.c
rtc-vr41xx.c rtc: vr41xx: fix possible race condition 2018-08-03 07:50:32 +02:00
rtc-vt8500.c
rtc-wm831x.c
rtc-wm8350.c rtc: wm8350: Handle error for wm8350_register_irq 2022-04-20 09:08:26 +02:00
rtc-x1205.c
rtc-xgene.c rtc: xgene: fix possible race condition 2019-05-31 06:47:30 -07:00
rtc-zynqmp.c
systohc.c