X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=arch%2Farm%2Fmach-omap2%2Fsmartreflex.c;h=9dd93453e563eaa666b2640663d529dc9102c928;hb=4c5f830c4c9d4f19c1eef356c0cd322b46d695c9;hp=0347b93211e6d468257f3a0bd365ebb28726edd8;hpb=83dbb15e9cd78a3619e3db36777e2f81d09b2914;p=~andy%2Flinux diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 0347b93211e..9dd93453e56 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -17,6 +17,7 @@ * published by the Free Software Foundation. */ +#include #include #include #include @@ -25,7 +26,7 @@ #include #include -#include +#include "common.h" #include "pm.h" #include "smartreflex.h" @@ -138,7 +139,7 @@ static irqreturn_t sr_interrupt(int irq, void *data) sr_write_reg(sr_info, ERRCONFIG_V1, status); } else if (sr_info->ip_type == SR_TYPE_V2) { /* Read the status bits */ - sr_read_reg(sr_info, IRQSTATUS); + status = sr_read_reg(sr_info, IRQSTATUS); /* Clear them by writing back */ sr_write_reg(sr_info, IRQSTATUS, status);