summaryrefslogtreecommitdiff
path: root/drivers/clk/h8300
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-07-13 16:54:04 -0700
committerStephen Boyd <sboyd@codeaurora.org>2015-07-28 11:51:36 -0700
commit9298f0267c7ed620f8d8261ded8518ebf8e89f9e (patch)
tree1801bfb0856105094773494761e8c142d39472fd /drivers/clk/h8300
parent19aab273083fa10c2262b8c8e3315bacb054d75d (diff)
downloadlinux-rpi-9298f0267c7ed620f8d8261ded8518ebf8e89f9e.tar.gz
linux-rpi-9298f0267c7ed620f8d8261ded8518ebf8e89f9e.tar.bz2
linux-rpi-9298f0267c7ed620f8d8261ded8518ebf8e89f9e.zip
clk: h8300: Drop allocation printk and cleanup sizeof style
We don't need to print an error on allocation failures, drop it. While we're here, change the sizeof() to be sizeof(*<ptr>) to make code more future proof. Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/h8300')
-rw-r--r--drivers/clk/h8300/clk-h8s2678.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/clk/h8300/clk-h8s2678.c b/drivers/clk/h8300/clk-h8s2678.c
index 4701b093e497..c121eb55e2e1 100644
--- a/drivers/clk/h8300/clk-h8s2678.c
+++ b/drivers/clk/h8300/clk-h8s2678.c
@@ -98,11 +98,9 @@ static void __init h8s2678_pll_clk_setup(struct device_node *node)
}
- pll_clock = kzalloc(sizeof(struct pll_clock), GFP_KERNEL);
- if (!pll_clock) {
- pr_err("%s: failed to alloc memory", clk_name);
+ pll_clock = kzalloc(sizeof(*pll_clock), GFP_KERNEL);
+ if (!pll_clock)
return;
- }
pll_clock->sckcr = of_iomap(node, 0);
if (pll_clock->sckcr == NULL) {