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
3b425dd2
Commit
3b425dd2
authored
Aug 27, 2023
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: led: Move register_led_regions() to late_initcall()
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
df3f9359
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
arch/parisc/include/asm/led.h
arch/parisc/include/asm/led.h
+0
-3
arch/parisc/kernel/setup.c
arch/parisc/kernel/setup.c
+0
-5
drivers/parisc/led.c
drivers/parisc/led.c
+3
-1
No files found.
arch/parisc/include/asm/led.h
View file @
3b425dd2
...
...
@@ -27,9 +27,6 @@
/* register_led_driver() */
int
__init
register_led_driver
(
int
model
,
unsigned
long
cmd_reg
,
unsigned
long
data_reg
);
/* registers the LED regions for procfs */
void
__init
register_led_regions
(
void
);
#ifdef CONFIG_CHASSIS_LCD_LED
/* writes a string to the LCD display (if possible on this h/w) */
int
lcd_print
(
const
char
*
str
);
...
...
arch/parisc/kernel/setup.c
View file @
3b425dd2
...
...
@@ -286,11 +286,6 @@ static int __init parisc_init(void)
#if defined(CONFIG_IOMMU_SBA)
sba_init
();
#endif
#ifdef CONFIG_CHASSIS_LCD_LED
register_led_regions
();
/* register LED port info in procfs */
#endif
return
0
;
}
arch_initcall
(
parisc_init
);
...
...
drivers/parisc/led.c
View file @
3b425dd2
...
...
@@ -613,7 +613,7 @@ int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long d
**
*/
void
__init
register_led_regions
(
void
)
static
int
__init
register_led_regions
(
void
)
{
switch
(
lcd_info
.
model
)
{
case
DISPLAY_MODEL_LCD
:
...
...
@@ -625,7 +625,9 @@ void __init register_led_regions(void)
request_mem_region
((
unsigned
long
)
LED_DATA_REG
,
1
,
"led_data"
);
break
;
}
return
0
;
}
late_initcall
(
register_led_regions
);
/*
...
...
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