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
82fa7a84
Commit
82fa7a84
authored
Nov 25, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] rocket driver janitor bits
parent
5b50077e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
drivers/char/rocket.c
drivers/char/rocket.c
+11
-1
No files found.
drivers/char/rocket.c
View file @
82fa7a84
...
@@ -1330,7 +1330,7 @@ static char *rp_tty_name(struct tty_struct *tty, char *buf)
...
@@ -1330,7 +1330,7 @@ static char *rp_tty_name(struct tty_struct *tty, char *buf)
{
{
if
(
tty
)
if
(
tty
)
sprintf
(
buf
,
"%s%d"
,
tty
->
driver
.
name
,
sprintf
(
buf
,
"%s%d"
,
tty
->
driver
.
name
,
MINOR
(
tty
->
device
)
-
tty
->
driver
.
minor_start
+
minor
(
tty
->
device
)
-
tty
->
driver
.
minor_start
+
tty
->
driver
.
name_base
);
tty
->
driver
.
name_base
);
else
else
strcpy
(
buf
,
"NULL tty"
);
strcpy
(
buf
,
"NULL tty"
);
...
@@ -1794,6 +1794,10 @@ int __init register_PCI(int i, unsigned int bus, unsigned int device_fn)
...
@@ -1794,6 +1794,10 @@ int __init register_PCI(int i, unsigned int bus, unsigned int device_fn)
str
=
"8-port Modem"
;
str
=
"8-port Modem"
;
max_num_aiops
=
1
;
max_num_aiops
=
1
;
break
;
break
;
case
0x8
:
str
=
"mysterious 8 port"
;
max_num_aiops
=
1
;
break
;
default:
default:
str
=
"(unknown/unsupported)"
;
str
=
"(unknown/unsupported)"
;
max_num_aiops
=
0
;
max_num_aiops
=
0
;
...
@@ -1872,6 +1876,10 @@ static int __init init_PCI(int boards_found)
...
@@ -1872,6 +1876,10 @@ static int __init init_PCI(int boards_found)
PCI_DEVICE_ID_RP8M
,
i
,
&
bus
,
&
device_fn
))
PCI_DEVICE_ID_RP8M
,
i
,
&
bus
,
&
device_fn
))
if
(
register_PCI
(
count
+
boards_found
,
bus
,
device_fn
))
if
(
register_PCI
(
count
+
boards_found
,
bus
,
device_fn
))
count
++
;
count
++
;
if
(
!
pcibios_find_device
(
PCI_VENDOR_ID_RP
,
0x8
,
i
,
&
bus
,
&
device_fn
))
if
(
register_PCI
(
count
+
boards_found
,
bus
,
device_fn
))
count
++
;
}
}
return
(
count
);
return
(
count
);
}
}
...
@@ -2072,6 +2080,7 @@ int __init rp_init(void)
...
@@ -2072,6 +2080,7 @@ int __init rp_init(void)
if
(
retval
<
0
)
{
if
(
retval
<
0
)
{
printk
(
"Couldn't install Rocketport callout driver "
printk
(
"Couldn't install Rocketport callout driver "
"(error %d)
\n
"
,
-
retval
);
"(error %d)
\n
"
,
-
retval
);
release_region
(
controller
,
4
);
return
-
1
;
return
-
1
;
}
}
...
@@ -2079,6 +2088,7 @@ int __init rp_init(void)
...
@@ -2079,6 +2088,7 @@ int __init rp_init(void)
if
(
retval
<
0
)
{
if
(
retval
<
0
)
{
printk
(
"Couldn't install tty Rocketport driver "
printk
(
"Couldn't install tty Rocketport driver "
"(error %d)
\n
"
,
-
retval
);
"(error %d)
\n
"
,
-
retval
);
release_region
(
controller
,
4
);
return
-
1
;
return
-
1
;
}
}
#ifdef ROCKET_DEBUG_OPEN
#ifdef ROCKET_DEBUG_OPEN
...
...
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