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
c12bcd74
Commit
c12bcd74
authored
Nov 25, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] hd64465 region handling cleanup
parent
b5dac75e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
arch/sh/kernel/hd64465_gpio.c
arch/sh/kernel/hd64465_gpio.c
+12
-5
No files found.
arch/sh/kernel/hd64465_gpio.c
View file @
c12bcd74
...
...
@@ -165,12 +165,19 @@ void hd64465_gpio_unregister_irq(int portpin)
static
int
__init
hd64465_gpio_init
(
void
)
{
/* TODO: check return values */
request_region
(
HD64465_REG_GPACR
,
0x1000
,
MODNAME
);
request_irq
(
HD64465_IRQ_GPIO
,
hd64465_gpio_interrupt
,
SA_INTERRUPT
,
MODNAME
,
0
);
int
err
;
if
(
!
request_region
(
HD64465_REG_GPACR
,
0x1000
,
MODNAME
))
return
-
EIO
;
err
=
request_irq
(
HD64465_IRQ_GPIO
,
hd64465_gpio_interrupt
,
SA_INTERRUPT
,
MODNAME
,
0
);
if
(
err
)
{
printk
(
KERN_ERR
"HD64465: Unable to get irq %d.
\n
"
,
HD64465_IRQ_GPIO
);
release_region
(
HD64465_REG_GPACR
,
0x1000
);
return
err
;
}
printk
(
"HD64465 GPIO layer on irq %d
\n
"
,
HD64465_IRQ_GPIO
);
printk
(
"HD64465 GPIO layer on irq %d
\n
"
,
HD64465_IRQ_GPIO
);
return
0
;
}
...
...
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