File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1758,6 +1758,10 @@ static int byt_gpio_suspend(struct device *dev)
1758
1758
vg -> context .pads [i ].conf0 = value ;
1759
1759
1760
1760
reg = byt_gpio_reg (vg , pin , BYT_VAL_REG );
1761
+ if (!reg ) {
1762
+ dev_warn (vg -> dev , "Pin %i: can't retrieve VAL\n" , i );
1763
+ continue ;
1764
+ }
1761
1765
value = readl (reg ) & BYT_VAL_RESTORE_MASK ;
1762
1766
vg -> context .pads [i ].val = value ;
1763
1767
}
@@ -1794,6 +1798,10 @@ static int byt_gpio_resume(struct device *dev)
1794
1798
}
1795
1799
1796
1800
reg = byt_gpio_reg (vg , pin , BYT_VAL_REG );
1801
+ if (!reg ) {
1802
+ dev_warn (vg -> dev , "Pin %i: can't retrieve VAL\n" , i );
1803
+ continue ;
1804
+ }
1797
1805
value = readl (reg );
1798
1806
if ((value & BYT_VAL_RESTORE_MASK ) !=
1799
1807
vg -> context .pads [i ].val ) {
You can’t perform that action at this time.
0 commit comments