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
nexedi
linux
Commits
7292ba64
Commit
7292ba64
authored
Aug 21, 2015
by
Thierry Reding
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.3/pinctrl' into for-4.3/dt
parents
d770e558
9462510c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
drivers/pinctrl/pinctrl-tegra.c
drivers/pinctrl/pinctrl-tegra.c
+18
-1
No files found.
drivers/pinctrl/pinctrl-tegra.c
View file @
7292ba64
...
...
@@ -624,6 +624,22 @@ static struct pinctrl_desc tegra_pinctrl_desc = {
.
owner
=
THIS_MODULE
,
};
static
bool
gpio_node_has_range
(
void
)
{
struct
device_node
*
np
;
bool
has_prop
=
false
;
np
=
of_find_compatible_node
(
NULL
,
NULL
,
"nvidia,tegra30-gpio"
);
if
(
!
np
)
return
has_prop
;
has_prop
=
of_find_property
(
np
,
"gpio-ranges"
,
NULL
);
of_node_put
(
np
);
return
has_prop
;
}
int
tegra_pinctrl_probe
(
struct
platform_device
*
pdev
,
const
struct
tegra_pinctrl_soc_data
*
soc_data
)
{
...
...
@@ -708,7 +724,8 @@ int tegra_pinctrl_probe(struct platform_device *pdev,
return
PTR_ERR
(
pmx
->
pctl
);
}
pinctrl_add_gpio_range
(
pmx
->
pctl
,
&
tegra_pinctrl_gpio_range
);
if
(
!
gpio_node_has_range
())
pinctrl_add_gpio_range
(
pmx
->
pctl
,
&
tegra_pinctrl_gpio_range
);
platform_set_drvdata
(
pdev
,
pmx
);
...
...
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