Re: [PATCH 4/6] clk: ingenic: Add JZ47xx TCU clocks driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





[...]

+	tcu->clocks.clk_num = nb_clks;
+ tcu->clocks.clks = kcalloc(nb_clocks, sizeof(struct clk *), GFP_KERNEL);
+	if (!tcu->clocks.clks) {
+		pr_err("%s: cannot allocate memory\n", __func__);
+		goto err_free_tcu;
+	}

Facepalm. A quick edit from kzalloc to kcalloc and I managed to break it.
It should be nb_clks not nb_clocks. I'll fix that in the V2.

-Paul

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux