summaryrefslogtreecommitdiffstats
path: root/drivers/clk/h8300
Commit message (Collapse)AuthorAgeFilesLines
* clk: h8300: Fix signness bugAxel Lin2015-07-282-2/+2
| | | | | | | | of_clk_get_parent_count() may return negative error code, so num_parents needs to be int rather than unsigned int. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
* clk: h8300: Use standard Linux I/O accessorsStephen Boyd2015-07-281-5/+5
| | | | | | | | | | | There doesn't seem to be any reason why we can't use the standard readb()/writeb() accessors here because ctrl_inb() and ctrl_outb() match the generic implementation of readb() and writeb() that the h8300 architecture uses. This allows us to test compile this driver on other architectures besides h8300. Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
* clk: h8300: Drop allocation printk and cleanup sizeof styleStephen Boyd2015-07-281-4/+2
| | | | | | | | | 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>
* clk: h8300: fix error handling in h8s2678_pll_clk_setup()Dan Carpenter2015-06-231-17/+16
| | | | | | | | | The error handling was a bit messy and buggy. It freed "pll_clock" then dereferenced it, and then freed it again. I've re-written it in normal kernel style. Fixes: 42ff8e8008c8 ('h8300: clock driver') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
* h8300: clock driverYoshinori Sato2015-06-233-0/+202
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>