[PATCH 5.4 031/119] clk: mediatek: clk-mt6797: Add check for mtk_alloc_clk_data