Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
6569108c
Commit
6569108c
authored
16 years ago
by
Gabor Juhos
Browse files
Options
Downloads
Patches
Plain Diff
make boot quiet a bit
SVN-Revision: 11939
parent
4a3cc5d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
target/linux/adm5120/files/arch/mips/adm5120/board.c
+6
-6
6 additions, 6 deletions
target/linux/adm5120/files/arch/mips/adm5120/board.c
with
6 additions
and
6 deletions
target/linux/adm5120/files/arch/mips/adm5120/board.c
+
6
−
6
View file @
6569108c
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
*
*
* ADM5120 generic board code
* ADM5120 generic board code
*
*
* Copyright (C) 2007 OpenWrt.org
* Copyright (C) 2007
,2008
OpenWrt.org
* Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
* Copyright (C) 2007
,2008
Gabor Juhos <juhosg at openwrt.org>
*
*
* This program is free software; you can redistribute it and/or modify it
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* under the terms of the GNU General Public License version 2 as published
...
@@ -28,7 +28,8 @@
...
@@ -28,7 +28,8 @@
#define PFX "adm5120: "
#define PFX "adm5120: "
static
LIST_HEAD
(
adm5120_boards
);
static
struct
list_head
adm5120_boards
__initdata
=
LIST_HEAD_INIT
(
adm5120_boards
);
static
char
adm5120_board_name
[
ADM5120_BOARD_NAMELEN
];
static
char
adm5120_board_name
[
ADM5120_BOARD_NAMELEN
];
const
char
*
get_system_type
(
void
)
const
char
*
get_system_type
(
void
)
...
@@ -61,14 +62,14 @@ static int __init adm5120_board_setup(void)
...
@@ -61,14 +62,14 @@ static int __init adm5120_board_setup(void)
board
=
adm5120_board_find
(
mips_machtype
);
board
=
adm5120_board_find
(
mips_machtype
);
if
(
board
==
NULL
)
{
if
(
board
==
NULL
)
{
printk
(
KERN_ALERT
PFX
"no board registered for "
printk
(
KERN_ALERT
PFX
"no board registered for "
"machtype %lu, trying generic
\n
"
,
mips_machtype
);
"machtype %lu, trying generic
\n
"
,
mips_machtype
);
board
=
adm5120_board_find
(
MACH_ADM5120_GENERIC
);
board
=
adm5120_board_find
(
MACH_ADM5120_GENERIC
);
if
(
board
==
NULL
)
if
(
board
==
NULL
)
panic
(
PFX
"unsupported board
\n
"
);
panic
(
PFX
"unsupported board
\n
"
);
}
}
printk
(
KERN_INFO
PFX
"
setting up
board '%s'
\n
"
,
board
->
name
);
printk
(
KERN_INFO
PFX
"board
is
'%s'
\n
"
,
board
->
name
);
memcpy
(
&
adm5120_board_name
,
board
->
name
,
ADM5120_BOARD_NAMELEN
);
memcpy
(
&
adm5120_board_name
,
board
->
name
,
ADM5120_BOARD_NAMELEN
);
...
@@ -109,5 +110,4 @@ arch_initcall(adm5120_board_setup);
...
@@ -109,5 +110,4 @@ arch_initcall(adm5120_board_setup);
void
__init
adm5120_board_register
(
struct
adm5120_board
*
board
)
void
__init
adm5120_board_register
(
struct
adm5120_board
*
board
)
{
{
list_add_tail
(
&
board
->
list
,
&
adm5120_boards
);
list_add_tail
(
&
board
->
list
,
&
adm5120_boards
);
printk
(
KERN_INFO
PFX
"registered board '%s'
\n
"
,
board
->
name
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment