mfd: tps80031: Use DEFINE_RES_IRQ() to simplify code
No functional change. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
5ac4b8509f
commit
a5b42f6687
|
@ -35,11 +35,7 @@
|
|||
#include <linux/slab.h>
|
||||
|
||||
static const struct resource tps80031_rtc_resources[] = {
|
||||
{
|
||||
.start = TPS80031_INT_RTC_ALARM,
|
||||
.end = TPS80031_INT_RTC_ALARM,
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
DEFINE_RES_IRQ(TPS80031_INT_RTC_ALARM),
|
||||
};
|
||||
|
||||
/* TPS80031 sub mfd devices */
|
||||
|
|
Loading…
Reference in New Issue