[ARM] pxa: make second argument of clk_add_alias a name instead of the device
clk_add_alias is commonly called for platform devices that are not yet registered in the device tree. Thus the clock alias is associated with NULL device name. Fix this by passing the device name instead of just device pointer. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Eric Miao <eric.miao@marvell.com>
This commit is contained in:

committed by
Eric Miao

parent
d1b95607e1
commit
c68ffddabc
@@ -69,6 +69,6 @@ extern void clk_pxa3xx_cken_disable(struct clk *);
|
||||
#endif
|
||||
|
||||
void clks_register(struct clk_lookup *clks, size_t num);
|
||||
int clk_add_alias(char *alias, struct device *alias_dev, char *id,
|
||||
int clk_add_alias(const char *alias, const char *alias_name, char *id,
|
||||
struct device *dev);
|
||||
|
||||
|
Reference in New Issue
Block a user