File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -167,9 +167,9 @@ static int nfcmrvl_i2c_parse_dt(struct device_node *node,
167
167
pdata -> irq_polarity = IRQF_TRIGGER_RISING ;
168
168
169
169
ret = irq_of_parse_and_map (node , 0 );
170
- if (ret < 0 ) {
171
- pr_err ("Unable to get irq, error: %d \n" , ret );
172
- return ret ;
170
+ if (! ret ) {
171
+ pr_err ("Unable to get irq\n" );
172
+ return - EINVAL ;
173
173
}
174
174
pdata -> irq = ret ;
175
175
Original file line number Diff line number Diff line change @@ -115,9 +115,9 @@ static int nfcmrvl_spi_parse_dt(struct device_node *node,
115
115
}
116
116
117
117
ret = irq_of_parse_and_map (node , 0 );
118
- if (ret < 0 ) {
119
- pr_err ("Unable to get irq, error: %d \n" , ret );
120
- return ret ;
118
+ if (! ret ) {
119
+ pr_err ("Unable to get irq\n" );
120
+ return - EINVAL ;
121
121
}
122
122
pdata -> irq = ret ;
123
123
You can’t perform that action at this time.
0 commit comments