clk: socfpga: Look for the GPIO_DB_CLK by its offset
authorDinh Nguyen <dinguyen@altera.com>
Fri, 13 Dec 2013 22:38:28 +0000 (16:38 -0600)
committerMike Turquette <mturquette@linaro.org>
Tue, 18 Feb 2014 22:08:08 +0000 (14:08 -0800)
commitb7cec13f082fcc6e690559657d3f5493ea6eecb7
treeec9610445a8013733e869744d442a6b67dad0ab3
parent6a7e71221d4e6cd185a51e2659f279da67f2e22d
clk: socfpga: Look for the GPIO_DB_CLK by its offset

After the patch:
"clk: socfpga: Map the clk manager base address in the clock driver"

The clk->name field in socfpga_clk_recalc_rate() was getting cleared. Replace
looking for the GPIO_DB_CLK by its divider offset instead.

Also rename the define SOCFPGA_DB_CLK_OFFSET -> SOCFPGA_GPIO_DB_CLK_OFFSET, as
this represents the GPIO_DB_CLK.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
drivers/clk/socfpga/clk.c