mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
mfd: rk808: Use DEFINE_RES_IRQ for rk808 RTC alarm IRQ
Do not open code the definition, instead use the nice DEFINE_RES_IRQ macro for it. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
dbd16ef534
commit
eeb86ed3ea
@ -109,11 +109,7 @@ static const struct regmap_config rk817_regmap_config = {
|
||||
};
|
||||
|
||||
static struct resource rtc_resources[] = {
|
||||
{
|
||||
.start = RK808_IRQ_RTC_ALARM,
|
||||
.end = RK808_IRQ_RTC_ALARM,
|
||||
.flags = IORESOURCE_IRQ,
|
||||
}
|
||||
DEFINE_RES_IRQ(RK808_IRQ_RTC_ALARM),
|
||||
};
|
||||
|
||||
static struct resource rk817_rtc_resources[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user