We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b1a1c1 commit 81fe523Copy full SHA for 81fe523
drivers/clk/ti/clkctrl.c
@@ -512,16 +512,16 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
512
struct clk_hw_omap *hw;
513
struct clk *clk;
514
struct omap_clkctrl_clk *clkctrl_clk = NULL;
515
- const __be32 *addrp;
516
bool legacy_naming;
517
const char *clkctrl_name;
518
u32 addr;
519
int ret;
520
char *c;
521
u16 soc_mask = 0;
+ struct resource res;
522
523
- addrp = of_get_address(node, 0, NULL, NULL);
524
- addr = (u32)of_translate_address(node, addrp);
+ of_address_to_resource(node, 0, &res);
+ addr = (u32)res.start;
525
526
#ifdef CONFIG_ARCH_OMAP4
527
if (of_machine_is_compatible("ti,omap4"))
0 commit comments