summaryrefslogtreecommitdiff
path: root/drivers/mfd/rk808.c
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2019-09-17 10:12:56 +0200
committerLee Jones <lee.jones@linaro.org>2019-11-11 08:45:01 +0000
commiteeb86ed3eafadd51dd97677856b68d6294eea00f (patch)
tree17893157a8e293a16da5306bbf9319bc8ca5bbeb /drivers/mfd/rk808.c
parentdbd16ef53487084816a20f662423ab543a75fc83 (diff)
downloadlwn-eeb86ed3eafadd51dd97677856b68d6294eea00f.tar.gz
lwn-eeb86ed3eafadd51dd97677856b68d6294eea00f.zip
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>
Diffstat (limited to 'drivers/mfd/rk808.c')
-rw-r--r--drivers/mfd/rk808.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index c0e5e921766d..a69a6742ecdc 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -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[] = {