rtc-opal.c (84a73014d86fd660822a20c032625e3afe99ca58) | rtc-opal.c (c35300941656508d37315625d276c5a104823505) |
---|---|
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. --- 138 unchanged lines hidden (view full) --- 147exit: 148 opal_async_release_token(token); 149 return rc; 150} 151 152/* Set Timed Power-On */ 153static int opal_set_tpo_time(struct device *dev, struct rtc_wkalrm *alarm) 154{ | 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. --- 138 unchanged lines hidden (view full) --- 147exit: 148 opal_async_release_token(token); 149 return rc; 150} 151 152/* Set Timed Power-On */ 153static int opal_set_tpo_time(struct device *dev, struct rtc_wkalrm *alarm) 154{ |
155 u64 h_m_s_ms = 0, token; | 155 u64 h_m_s_ms = 0; |
156 struct opal_msg msg; 157 u32 y_m_d = 0; | 156 struct opal_msg msg; 157 u32 y_m_d = 0; |
158 int rc; | 158 int token, rc; |
159 160 tm_to_opal(&alarm->time, &y_m_d, &h_m_s_ms); 161 162 token = opal_async_get_token_interruptible(); 163 if (token < 0) { 164 if (token != -ERESTARTSYS) 165 pr_err("Failed to get the async token\n"); 166 --- 96 unchanged lines hidden --- | 159 160 tm_to_opal(&alarm->time, &y_m_d, &h_m_s_ms); 161 162 token = opal_async_get_token_interruptible(); 163 if (token < 0) { 164 if (token != -ERESTARTSYS) 165 pr_err("Failed to get the async token\n"); 166 --- 96 unchanged lines hidden --- |