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
136c4bbf
Commit
136c4bbf
authored
Aug 25, 2007
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull bugzilla-8798 into release branch
parents
25c87f7f
e6d9da1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
drivers/acpi/video.c
drivers/acpi/video.c
+8
-0
No files found.
drivers/acpi/video.c
View file @
136c4bbf
...
@@ -1881,6 +1881,7 @@ static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data)
...
@@ -1881,6 +1881,7 @@ static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data)
return
;
return
;
}
}
static
int
instance
;
static
int
acpi_video_bus_add
(
struct
acpi_device
*
device
)
static
int
acpi_video_bus_add
(
struct
acpi_device
*
device
)
{
{
int
result
=
0
;
int
result
=
0
;
...
@@ -1896,6 +1897,13 @@ static int acpi_video_bus_add(struct acpi_device *device)
...
@@ -1896,6 +1897,13 @@ static int acpi_video_bus_add(struct acpi_device *device)
if
(
!
video
)
if
(
!
video
)
return
-
ENOMEM
;
return
-
ENOMEM
;
/* a hack to fix the duplicate name "VID" problem on T61 */
if
(
!
strcmp
(
device
->
pnp
.
bus_id
,
"VID"
))
{
if
(
instance
)
device
->
pnp
.
bus_id
[
3
]
=
'0'
+
instance
;
instance
++
;
}
video
->
device
=
device
;
video
->
device
=
device
;
strcpy
(
acpi_device_name
(
device
),
ACPI_VIDEO_BUS_NAME
);
strcpy
(
acpi_device_name
(
device
),
ACPI_VIDEO_BUS_NAME
);
strcpy
(
acpi_device_class
(
device
),
ACPI_VIDEO_CLASS
);
strcpy
(
acpi_device_class
(
device
),
ACPI_VIDEO_CLASS
);
...
...
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