Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtc: starfive: use irq_data instead of irq_desc #109

Open
wants to merge 1 commit into
base: JH7110_VisionFive2_devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions drivers/rtc/rtc-starfive.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ static int sft_rtc_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct sft_rtc *srtc;
struct rtc_time tm;
struct irq_desc *desc;
struct irq_data *data;
int ret;

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

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

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