Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e07b2b59
Commit
e07b2b59
authored
May 12, 2014
by
Mike Turquette
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clk-fixes' into clk-next
parents
95713978
8e33f91a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
...ion/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
+1
-1
drivers/clk/shmobile/clk-mstp.c
drivers/clk/shmobile/clk-mstp.c
+7
-2
No files found.
Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt
View file @
e07b2b59
...
...
@@ -43,7 +43,7 @@ Example
clock-output-names =
"tpu0", "mmcif1", "sdhi3", "sdhi2",
"sdhi1", "sdhi0", "mmcif0";
renesas,
clock-indices = <
clock-indices = <
R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0
R8A7790_CLK_MMCIF0
...
...
drivers/clk/shmobile/clk-mstp.c
View file @
e07b2b59
...
...
@@ -156,6 +156,7 @@ cpg_mstp_clock_register(const char *name, const char *parent_name,
static
void
__init
cpg_mstp_clocks_init
(
struct
device_node
*
np
)
{
struct
mstp_clock_group
*
group
;
const
char
*
idxname
;
struct
clk
**
clks
;
unsigned
int
i
;
...
...
@@ -184,6 +185,11 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
for
(
i
=
0
;
i
<
MSTP_MAX_CLOCKS
;
++
i
)
clks
[
i
]
=
ERR_PTR
(
-
ENOENT
);
if
(
of_find_property
(
np
,
"clock-indices"
,
&
i
))
idxname
=
"clock-indices"
;
else
idxname
=
"renesas,clock-indices"
;
for
(
i
=
0
;
i
<
MSTP_MAX_CLOCKS
;
++
i
)
{
const
char
*
parent_name
;
const
char
*
name
;
...
...
@@ -197,8 +203,7 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
continue
;
parent_name
=
of_clk_get_parent_name
(
np
,
i
);
ret
=
of_property_read_u32_index
(
np
,
"renesas,clock-indices"
,
i
,
&
clkidx
);
ret
=
of_property_read_u32_index
(
np
,
idxname
,
i
,
&
clkidx
);
if
(
parent_name
==
NULL
||
ret
<
0
)
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment