rtc-opal.c (9938b04472d5c59f8bd8152a548533a8599596a2) | rtc-opal.c (d0226d315dba5e401a124b394a1af5e35e082b08) |
---|---|
1/* 2 * IBM OPAL RTC driver 3 * Copyright (C) 2014 IBM 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 120 unchanged lines hidden (view full) --- 129 } 130 131 rc = opal_async_wait_response(token, &msg); 132 if (rc) { 133 rc = -EIO; 134 goto exit; 135 } 136 | 1/* 2 * IBM OPAL RTC driver 3 * Copyright (C) 2014 IBM 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 120 unchanged lines hidden (view full) --- 129 } 130 131 rc = opal_async_wait_response(token, &msg); 132 if (rc) { 133 rc = -EIO; 134 goto exit; 135 } 136 |
137 rc = be64_to_cpu(msg.params[1]); | 137 rc = opal_get_async_rc(msg); |
138 if (rc != OPAL_SUCCESS) { 139 rc = -EIO; 140 goto exit; 141 } 142 143 y_m_d = be32_to_cpu(__y_m_d); 144 h_m_s_ms = ((u64)be32_to_cpu(__h_m) << 32); 145 opal_to_tm(y_m_d, h_m_s_ms, &alarm->time); --- 30 unchanged lines hidden (view full) --- 176 } 177 178 rc = opal_async_wait_response(token, &msg); 179 if (rc) { 180 rc = -EIO; 181 goto exit; 182 } 183 | 138 if (rc != OPAL_SUCCESS) { 139 rc = -EIO; 140 goto exit; 141 } 142 143 y_m_d = be32_to_cpu(__y_m_d); 144 h_m_s_ms = ((u64)be32_to_cpu(__h_m) << 32); 145 opal_to_tm(y_m_d, h_m_s_ms, &alarm->time); --- 30 unchanged lines hidden (view full) --- 176 } 177 178 rc = opal_async_wait_response(token, &msg); 179 if (rc) { 180 rc = -EIO; 181 goto exit; 182 } 183 |
184 rc = be64_to_cpu(msg.params[1]); | 184 rc = opal_get_async_rc(msg); |
185 if (rc != OPAL_SUCCESS) 186 rc = -EIO; 187 188exit: 189 opal_async_release_token(token); 190 return rc; 191} 192 --- 71 unchanged lines hidden --- | 185 if (rc != OPAL_SUCCESS) 186 rc = -EIO; 187 188exit: 189 opal_async_release_token(token); 190 return rc; 191} 192 --- 71 unchanged lines hidden --- |