[PATCH 6.5 177/550] clk: mediatek: clk-mt6797: Add check for mtk_alloc_clk_data