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)
220220 * This function is used to get name of clock specified by given
221221 * clock ID.
222222 *
223- * Return: Returns 0
223+ * Return: 0 on success else error+reason
224224 */
225225static int zynqmp_pm_clock_get_name (u32 clock_id ,
226226 struct name_resp * response )
227227{
228228 struct zynqmp_pm_query_data qdata = {0 };
229229 u32 ret_payload [PAYLOAD_ARG_CNT ];
230+ int ret ;
230231
231232 qdata .qid = PM_QID_CLOCK_GET_NAME ;
232233 qdata .arg1 = clock_id ;
233234
234- zynqmp_pm_query_data (qdata , ret_payload );
235+ ret = zynqmp_pm_query_data (qdata , ret_payload );
236+ if (ret )
237+ return ret ;
238+
235239 memcpy (response , ret_payload , sizeof (* response ));
236240
237241 return 0 ;
You can’t perform that action at this time.
0 commit comments