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
fc72b7a3
Commit
fc72b7a3
authored
Aug 21, 2017
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc/mux: Fix section mismatches
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
6aaf7934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/tty/serial/mux.c
drivers/tty/serial/mux.c
+7
-7
No files found.
drivers/tty/serial/mux.c
View file @
fc72b7a3
...
@@ -503,7 +503,7 @@ static int __init mux_probe(struct parisc_device *dev)
...
@@ -503,7 +503,7 @@ static int __init mux_probe(struct parisc_device *dev)
return
0
;
return
0
;
}
}
static
int
mux_remove
(
struct
parisc_device
*
dev
)
static
int
__exit
mux_remove
(
struct
parisc_device
*
dev
)
{
{
int
i
,
j
;
int
i
,
j
;
int
port_count
=
(
long
)
dev_get_drvdata
(
&
dev
->
dev
);
int
port_count
=
(
long
)
dev_get_drvdata
(
&
dev
->
dev
);
...
@@ -536,13 +536,13 @@ static int mux_remove(struct parisc_device *dev)
...
@@ -536,13 +536,13 @@ static int mux_remove(struct parisc_device *dev)
* This table only contains the parisc_device_id of known builtin mux
* This table only contains the parisc_device_id of known builtin mux
* devices. All other mux cards will be detected by the generic mux_tbl.
* devices. All other mux cards will be detected by the generic mux_tbl.
*/
*/
static
struct
parisc_device_id
builtin_mux_tbl
[]
=
{
static
const
struct
parisc_device_id
builtin_mux_tbl
[]
__initconst
=
{
{
HPHW_A_DIRECT
,
HVERSION_REV_ANY_ID
,
0x15
,
0x0000D
},
/* All K-class */
{
HPHW_A_DIRECT
,
HVERSION_REV_ANY_ID
,
0x15
,
0x0000D
},
/* All K-class */
{
HPHW_A_DIRECT
,
HVERSION_REV_ANY_ID
,
0x44
,
0x0000D
},
/* E35, E45, and E55 */
{
HPHW_A_DIRECT
,
HVERSION_REV_ANY_ID
,
0x44
,
0x0000D
},
/* E35, E45, and E55 */
{
0
,
}
{
0
,
}
};
};
static
struct
parisc_device_id
mux_tbl
[]
=
{
static
const
struct
parisc_device_id
mux_tbl
[]
__initconst
=
{
{
HPHW_A_DIRECT
,
HVERSION_REV_ANY_ID
,
HVERSION_ANY_ID
,
0x0000D
},
{
HPHW_A_DIRECT
,
HVERSION_REV_ANY_ID
,
HVERSION_ANY_ID
,
0x0000D
},
{
0
,
}
{
0
,
}
};
};
...
@@ -550,18 +550,18 @@ static struct parisc_device_id mux_tbl[] = {
...
@@ -550,18 +550,18 @@ static struct parisc_device_id mux_tbl[] = {
MODULE_DEVICE_TABLE
(
parisc
,
builtin_mux_tbl
);
MODULE_DEVICE_TABLE
(
parisc
,
builtin_mux_tbl
);
MODULE_DEVICE_TABLE
(
parisc
,
mux_tbl
);
MODULE_DEVICE_TABLE
(
parisc
,
mux_tbl
);
static
struct
parisc_driver
builtin_serial_mux_driver
=
{
static
struct
parisc_driver
builtin_serial_mux_driver
__refdata
=
{
.
name
=
"builtin_serial_mux"
,
.
name
=
"builtin_serial_mux"
,
.
id_table
=
builtin_mux_tbl
,
.
id_table
=
builtin_mux_tbl
,
.
probe
=
mux_probe
,
.
probe
=
mux_probe
,
.
remove
=
mux_remove
,
.
remove
=
__exit_p
(
mux_remove
)
,
};
};
static
struct
parisc_driver
serial_mux_driver
=
{
static
struct
parisc_driver
serial_mux_driver
__refdata
=
{
.
name
=
"serial_mux"
,
.
name
=
"serial_mux"
,
.
id_table
=
mux_tbl
,
.
id_table
=
mux_tbl
,
.
probe
=
mux_probe
,
.
probe
=
mux_probe
,
.
remove
=
mux_remove
,
.
remove
=
__exit_p
(
mux_remove
)
,
};
};
/**
/**
...
...
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