i2c-opal.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | i2c-opal.c (d0226d315dba5e401a124b394a1af5e35e082b08) |
---|---|
1/* 2 * IBM OPAL I2C 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. --- 57 unchanged lines hidden (view full) --- 66 rc = i2c_opal_translate_error(rc); 67 goto exit; 68 } 69 70 rc = opal_async_wait_response(token, &msg); 71 if (rc) 72 goto exit; 73 | 1/* 2 * IBM OPAL I2C 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. --- 57 unchanged lines hidden (view full) --- 66 rc = i2c_opal_translate_error(rc); 67 goto exit; 68 } 69 70 rc = opal_async_wait_response(token, &msg); 71 if (rc) 72 goto exit; 73 |
74 rc = be64_to_cpu(msg.params[1]); | 74 rc = opal_get_async_rc(msg); |
75 if (rc != OPAL_SUCCESS) { 76 rc = i2c_opal_translate_error(rc); 77 goto exit; 78 } 79 80exit: 81 opal_async_release_token(token); 82 return rc; --- 212 unchanged lines hidden --- | 75 if (rc != OPAL_SUCCESS) { 76 rc = i2c_opal_translate_error(rc); 77 goto exit; 78 } 79 80exit: 81 opal_async_release_token(token); 82 return rc; --- 212 unchanged lines hidden --- |