Skip to content

Commit 8418239

Browse files
committed
rtc: starfive: use irq_data instead of irq_desc
irq_desc is internal Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
1 parent 4964ce0 commit 8418239

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/rtc/rtc-starfive.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ static int sft_rtc_probe(struct platform_device *pdev)
575575
struct device *dev = &pdev->dev;
576576
struct sft_rtc *srtc;
577577
struct rtc_time tm;
578-
struct irq_desc *desc;
578+
struct irq_data *data;
579579
int ret;
580580

581581
srtc = devm_kzalloc(dev, sizeof(*srtc), GFP_KERNEL);
@@ -640,8 +640,8 @@ static int sft_rtc_probe(struct platform_device *pdev)
640640
srtc->rtc_dev->ops = &starfive_rtc_ops;
641641
device_init_wakeup(dev, true);
642642

643-
desc = irq_to_desc(srtc->rtc_irq);
644-
irq_desc_get_chip(desc)->flags = IRQCHIP_SKIP_SET_WAKE;
643+
data = irq_get_irq_data(srtc->rtc_irq);
644+
irq_data_get_irq_chip(data)->flags = IRQCHIP_SKIP_SET_WAKE;
645645

646646
/* Always use 24-hour mode and keep the RTC values */
647647
sft_rtc_set_mode(srtc, RTC_HOUR_MODE_24H);

0 commit comments

Comments
 (0)