File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -220,18 +220,22 @@ static int zynqmp_pm_clock_get_num_clocks(u32 *nclocks)
220
220
* This function is used to get name of clock specified by given
221
221
* clock ID.
222
222
*
223
- * Return: Returns 0
223
+ * Return: 0 on success else error+reason
224
224
*/
225
225
static int zynqmp_pm_clock_get_name (u32 clock_id ,
226
226
struct name_resp * response )
227
227
{
228
228
struct zynqmp_pm_query_data qdata = {0 };
229
229
u32 ret_payload [PAYLOAD_ARG_CNT ];
230
+ int ret ;
230
231
231
232
qdata .qid = PM_QID_CLOCK_GET_NAME ;
232
233
qdata .arg1 = clock_id ;
233
234
234
- zynqmp_pm_query_data (qdata , ret_payload );
235
+ ret = zynqmp_pm_query_data (qdata , ret_payload );
236
+ if (ret )
237
+ return ret ;
238
+
235
239
memcpy (response , ret_payload , sizeof (* response ));
236
240
237
241
return 0 ;
You can’t perform that action at this time.
0 commit comments