Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
b7011d53
Commit
b7011d53
authored
Aug 24, 2007
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull sony into release branch
parents
a6729753
015a916f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
drivers/misc/sony-laptop.c
drivers/misc/sony-laptop.c
+18
-6
No files found.
drivers/misc/sony-laptop.c
View file @
b7011d53
...
@@ -855,6 +855,15 @@ static struct dmi_system_id sony_nc_ids[] = {
...
@@ -855,6 +855,15 @@ static struct dmi_system_id sony_nc_ids[] = {
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"VGN-FE"
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"VGN-FE"
),
},
},
},
},
{
.
ident
=
"Sony Vaio FZ Series"
,
.
callback
=
sony_nc_C_enable
,
.
driver_data
=
sony_C_events
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Sony Corporation"
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"VGN-FZ"
),
},
},
{
{
.
ident
=
"Sony Vaio C Series"
,
.
ident
=
"Sony Vaio C Series"
,
.
callback
=
sony_nc_C_enable
,
.
callback
=
sony_nc_C_enable
,
...
@@ -2308,8 +2317,6 @@ static int sony_pic_remove(struct acpi_device *device, int type)
...
@@ -2308,8 +2317,6 @@ static int sony_pic_remove(struct acpi_device *device, int type)
struct
sony_pic_ioport
*
io
,
*
tmp_io
;
struct
sony_pic_ioport
*
io
,
*
tmp_io
;
struct
sony_pic_irq
*
irq
,
*
tmp_irq
;
struct
sony_pic_irq
*
irq
,
*
tmp_irq
;
sonypi_compat_exit
();
if
(
sony_pic_disable
(
device
))
{
if
(
sony_pic_disable
(
device
))
{
printk
(
KERN_ERR
DRV_PFX
"Couldn't disable device.
\n
"
);
printk
(
KERN_ERR
DRV_PFX
"Couldn't disable device.
\n
"
);
return
-
ENXIO
;
return
-
ENXIO
;
...
@@ -2319,6 +2326,8 @@ static int sony_pic_remove(struct acpi_device *device, int type)
...
@@ -2319,6 +2326,8 @@ static int sony_pic_remove(struct acpi_device *device, int type)
release_region
(
spic_dev
.
cur_ioport
->
io
.
minimum
,
release_region
(
spic_dev
.
cur_ioport
->
io
.
minimum
,
spic_dev
.
cur_ioport
->
io
.
address_length
);
spic_dev
.
cur_ioport
->
io
.
address_length
);
sonypi_compat_exit
();
sony_laptop_remove_input
();
sony_laptop_remove_input
();
/* pf attrs */
/* pf attrs */
...
@@ -2384,6 +2393,9 @@ static int sony_pic_add(struct acpi_device *device)
...
@@ -2384,6 +2393,9 @@ static int sony_pic_add(struct acpi_device *device)
goto
err_free_resources
;
goto
err_free_resources
;
}
}
if
(
sonypi_compat_init
())
goto
err_remove_input
;
/* request io port */
/* request io port */
list_for_each_entry
(
io
,
&
spic_dev
.
ioports
,
list
)
{
list_for_each_entry
(
io
,
&
spic_dev
.
ioports
,
list
)
{
if
(
request_region
(
io
->
io
.
minimum
,
io
->
io
.
address_length
,
if
(
request_region
(
io
->
io
.
minimum
,
io
->
io
.
address_length
,
...
@@ -2398,7 +2410,7 @@ static int sony_pic_add(struct acpi_device *device)
...
@@ -2398,7 +2410,7 @@ static int sony_pic_add(struct acpi_device *device)
if
(
!
spic_dev
.
cur_ioport
)
{
if
(
!
spic_dev
.
cur_ioport
)
{
printk
(
KERN_ERR
DRV_PFX
"Failed to request_region.
\n
"
);
printk
(
KERN_ERR
DRV_PFX
"Failed to request_region.
\n
"
);
result
=
-
ENODEV
;
result
=
-
ENODEV
;
goto
err_remove_
inpu
t
;
goto
err_remove_
compa
t
;
}
}
/* request IRQ */
/* request IRQ */
...
@@ -2438,9 +2450,6 @@ static int sony_pic_add(struct acpi_device *device)
...
@@ -2438,9 +2450,6 @@ static int sony_pic_add(struct acpi_device *device)
if
(
result
)
if
(
result
)
goto
err_remove_pf
;
goto
err_remove_pf
;
if
(
sonypi_compat_init
())
goto
err_remove_pf
;
return
0
;
return
0
;
err_remove_pf:
err_remove_pf:
...
@@ -2456,6 +2465,9 @@ err_release_region:
...
@@ -2456,6 +2465,9 @@ err_release_region:
release_region
(
spic_dev
.
cur_ioport
->
io
.
minimum
,
release_region
(
spic_dev
.
cur_ioport
->
io
.
minimum
,
spic_dev
.
cur_ioport
->
io
.
address_length
);
spic_dev
.
cur_ioport
->
io
.
address_length
);
err_remove_compat:
sonypi_compat_exit
();
err_remove_input:
err_remove_input:
sony_laptop_remove_input
();
sony_laptop_remove_input
();
...
...
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