diff options
Diffstat (limited to 'drivers/rtc/rtc-opal.c')
-rw-r--r-- | drivers/rtc/rtc-opal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-opal.c b/drivers/rtc/rtc-opal.c index 9c18d6fd8107..ea20f627dabe 100644 --- a/drivers/rtc/rtc-opal.c +++ b/drivers/rtc/rtc-opal.c | |||
@@ -134,7 +134,7 @@ static int opal_get_tpo_time(struct device *dev, struct rtc_wkalrm *alarm) | |||
134 | goto exit; | 134 | goto exit; |
135 | } | 135 | } |
136 | 136 | ||
137 | rc = be64_to_cpu(msg.params[1]); | 137 | rc = opal_get_async_rc(msg); |
138 | if (rc != OPAL_SUCCESS) { | 138 | if (rc != OPAL_SUCCESS) { |
139 | rc = -EIO; | 139 | rc = -EIO; |
140 | goto exit; | 140 | goto exit; |
@@ -181,7 +181,7 @@ static int opal_set_tpo_time(struct device *dev, struct rtc_wkalrm *alarm) | |||
181 | goto exit; | 181 | goto exit; |
182 | } | 182 | } |
183 | 183 | ||
184 | rc = be64_to_cpu(msg.params[1]); | 184 | rc = opal_get_async_rc(msg); |
185 | if (rc != OPAL_SUCCESS) | 185 | if (rc != OPAL_SUCCESS) |
186 | rc = -EIO; | 186 | rc = -EIO; |
187 | 187 | ||