]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/clk/clk-fixed-rate.c
Merge branch 'clk-shmobile-for-4.2' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / drivers / clk / clk-fixed-rate.c
index 0fc56ab6e844c88493e68f86b6a1fed8884a516e..f85ec8d1711fb7f36ac2e724308745dbf7b1ef47 100644 (file)
@@ -65,11 +65,9 @@ struct clk *clk_register_fixed_rate_with_accuracy(struct device *dev,
        struct clk_init_data init;
 
        /* allocate fixed-rate clock */
-       fixed = kzalloc(sizeof(struct clk_fixed_rate), GFP_KERNEL);
-       if (!fixed) {
-               pr_err("%s: could not allocate fixed clk\n", __func__);
+       fixed = kzalloc(sizeof(*fixed), GFP_KERNEL);
+       if (!fixed)
                return ERR_PTR(-ENOMEM);
-       }
 
        init.name = name;
        init.ops = &clk_fixed_rate_ops;