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
42c25013
Commit
42c25013
authored
Apr 12, 2016
by
Linus Walleij
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "gpio: rcar: Add Runtime PM handling for interrupts"
This reverts commit
b26a719b
.
parent
bf162006
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
drivers/gpio/gpio-rcar.c
drivers/gpio/gpio-rcar.c
+0
-42
No files found.
drivers/gpio/gpio-rcar.c
View file @
42c25013
...
...
@@ -196,44 +196,6 @@ static int gpio_rcar_irq_set_wake(struct irq_data *d, unsigned int on)
return
0
;
}
static
void
gpio_rcar_irq_bus_lock
(
struct
irq_data
*
d
)
{
struct
gpio_chip
*
gc
=
irq_data_get_irq_chip_data
(
d
);
struct
gpio_rcar_priv
*
p
=
gpiochip_get_data
(
gc
);
pm_runtime_get_sync
(
&
p
->
pdev
->
dev
);
}
static
void
gpio_rcar_irq_bus_sync_unlock
(
struct
irq_data
*
d
)
{
struct
gpio_chip
*
gc
=
irq_data_get_irq_chip_data
(
d
);
struct
gpio_rcar_priv
*
p
=
gpiochip_get_data
(
gc
);
pm_runtime_put
(
&
p
->
pdev
->
dev
);
}
static
int
gpio_rcar_irq_request_resources
(
struct
irq_data
*
d
)
{
struct
gpio_chip
*
gc
=
irq_data_get_irq_chip_data
(
d
);
struct
gpio_rcar_priv
*
p
=
gpiochip_get_data
(
gc
);
int
error
;
error
=
pm_runtime_get_sync
(
&
p
->
pdev
->
dev
);
if
(
error
<
0
)
return
error
;
return
0
;
}
static
void
gpio_rcar_irq_release_resources
(
struct
irq_data
*
d
)
{
struct
gpio_chip
*
gc
=
irq_data_get_irq_chip_data
(
d
);
struct
gpio_rcar_priv
*
p
=
gpiochip_get_data
(
gc
);
pm_runtime_put
(
&
p
->
pdev
->
dev
);
}
static
irqreturn_t
gpio_rcar_irq_handler
(
int
irq
,
void
*
dev_id
)
{
struct
gpio_rcar_priv
*
p
=
dev_id
;
...
...
@@ -488,10 +450,6 @@ static int gpio_rcar_probe(struct platform_device *pdev)
irq_chip
->
irq_unmask
=
gpio_rcar_irq_enable
;
irq_chip
->
irq_set_type
=
gpio_rcar_irq_set_type
;
irq_chip
->
irq_set_wake
=
gpio_rcar_irq_set_wake
;
irq_chip
->
irq_bus_lock
=
gpio_rcar_irq_bus_lock
;
irq_chip
->
irq_bus_sync_unlock
=
gpio_rcar_irq_bus_sync_unlock
;
irq_chip
->
irq_request_resources
=
gpio_rcar_irq_request_resources
;
irq_chip
->
irq_release_resources
=
gpio_rcar_irq_release_resources
;
irq_chip
->
flags
=
IRQCHIP_SET_TYPE_MASKED
|
IRQCHIP_MASK_ON_SUSPEND
;
ret
=
gpiochip_add_data
(
gpio_chip
,
p
);
...
...
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