summaryrefslogtreecommitdiff
path: root/drivers/clk/mediatek/clk-apmixed.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/mediatek/clk-apmixed.c')
-rw-r--r--drivers/clk/mediatek/clk-apmixed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mediatek/clk-apmixed.c b/drivers/clk/mediatek/clk-apmixed.c
index 60e34f124250..16e8a325b5bf 100644
--- a/drivers/clk/mediatek/clk-apmixed.c
+++ b/drivers/clk/mediatek/clk-apmixed.c
@@ -77,7 +77,7 @@ struct clk_hw *mtk_clk_register_ref2usb_tx(const char *name,
struct clk_init_data init = {};
int ret;
- tx = kzalloc(sizeof(*tx), GFP_KERNEL);
+ tx = kzalloc_obj(*tx);
if (!tx)
return ERR_PTR(-ENOMEM);