Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
linux-arm
jg-open
Commits
1585a0e0
Commit
1585a0e0
authored
Sep 21, 2021
by
Joey Gouly
Browse files
Revert "pinctrl: apple-gpio: remove clocks, this will be handled with power domains"
This reverts commit
bff33092
.
parent
fc613f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/pinctrl/pinctrl-apple-gpio.c
View file @
1585a0e0
...
...
@@ -547,6 +547,7 @@ static const struct of_device_id apple_gpio_pinctrl_of_match[] = {
static
int
apple_gpio_pinctrl_probe
(
struct
platform_device
*
pdev
)
{
struct
apple_gpio_pinctrl
*
pctl
;
struct
clk
*
clk
;
struct
of_phandle_args
pinspec
;
int
res
;
unsigned
pin_base
,
i
;
...
...
@@ -583,6 +584,16 @@ static int apple_gpio_pinctrl_probe(struct platform_device *pdev)
if
(
IS_ERR
(
pctl
->
base
))
return
PTR_ERR
(
pctl
->
base
);
clk
=
devm_clk_get
(
&
pdev
->
dev
,
NULL
);
if
(
IS_ERR
(
clk
))
{
dev_err
(
&
pdev
->
dev
,
"unable to get clock: %ld.
\n
"
,
PTR_ERR
(
clk
));
return
PTR_ERR
(
clk
);
}
res
=
clk_prepare_enable
(
clk
);
if
(
res
)
return
res
;
for
(
i
=
0
;
i
<
pctl
->
npins
;
i
++
)
{
apple_gpio_init_reg
(
pctl
,
i
);
...
...
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