@@ -948,8 +948,8 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
948
948
(mode < 0 ) ? "unknown" : modes [mode ]);
949
949
} else {
950
950
int irq = chip -> to_irq (chip , offset );
951
- struct irq_desc * desc = irq_to_desc (irq );
952
951
const int pullidx = pull ? 1 : 0 ;
952
+ bool wake ;
953
953
int val ;
954
954
static const char * const pulls [] = {
955
955
"none " ,
@@ -969,8 +969,9 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
969
969
* This races with request_irq(), set_irq_type(),
970
970
* and set_irq_wake() ... but those are "rare".
971
971
*/
972
- if (irq > 0 && desc && desc -> action ) {
972
+ if (irq > 0 && irq_has_action ( irq ) ) {
973
973
char * trigger ;
974
+ bool wake ;
974
975
975
976
if (nmk_chip -> edge_rising & BIT (offset ))
976
977
trigger = "edge-rising" ;
@@ -979,10 +980,10 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
979
980
else
980
981
trigger = "edge-undefined" ;
981
982
983
+ wake = !!(nmk_chip -> real_wake & BIT (offset ));
984
+
982
985
seq_printf (s , " irq-%d %s%s" ,
983
- irq , trigger ,
984
- irqd_is_wakeup_set (& desc -> irq_data )
985
- ? " wakeup" : "" );
986
+ irq , trigger , wake ? " wakeup" : "" );
986
987
}
987
988
}
988
989
clk_disable (nmk_chip -> clk );
0 commit comments