Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
b7011d53
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b7011d53
编写于
8月 24, 2007
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull sony into release branch
上级
a6729753
015a916f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
6 deletion
+18
-6
drivers/misc/sony-laptop.c
drivers/misc/sony-laptop.c
+18
-6
未找到文件。
drivers/misc/sony-laptop.c
浏览文件 @
b7011d53
...
...
@@ -855,6 +855,15 @@ static struct dmi_system_id sony_nc_ids[] = {
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"
,
.
callback
=
sony_nc_C_enable
,
...
...
@@ -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_irq
*
irq
,
*
tmp_irq
;
sonypi_compat_exit
();
if
(
sony_pic_disable
(
device
))
{
printk
(
KERN_ERR
DRV_PFX
"Couldn't disable device.
\n
"
);
return
-
ENXIO
;
...
...
@@ -2319,6 +2326,8 @@ static int sony_pic_remove(struct acpi_device *device, int type)
release_region
(
spic_dev
.
cur_ioport
->
io
.
minimum
,
spic_dev
.
cur_ioport
->
io
.
address_length
);
sonypi_compat_exit
();
sony_laptop_remove_input
();
/* pf attrs */
...
...
@@ -2384,6 +2393,9 @@ static int sony_pic_add(struct acpi_device *device)
goto
err_free_resources
;
}
if
(
sonypi_compat_init
())
goto
err_remove_input
;
/* request io port */
list_for_each_entry
(
io
,
&
spic_dev
.
ioports
,
list
)
{
if
(
request_region
(
io
->
io
.
minimum
,
io
->
io
.
address_length
,
...
...
@@ -2398,7 +2410,7 @@ static int sony_pic_add(struct acpi_device *device)
if
(
!
spic_dev
.
cur_ioport
)
{
printk
(
KERN_ERR
DRV_PFX
"Failed to request_region.
\n
"
);
result
=
-
ENODEV
;
goto
err_remove_
inpu
t
;
goto
err_remove_
compa
t
;
}
/* request IRQ */
...
...
@@ -2438,9 +2450,6 @@ static int sony_pic_add(struct acpi_device *device)
if
(
result
)
goto
err_remove_pf
;
if
(
sonypi_compat_init
())
goto
err_remove_pf
;
return
0
;
err_remove_pf:
...
...
@@ -2456,6 +2465,9 @@ static int sony_pic_add(struct acpi_device *device)
release_region
(
spic_dev
.
cur_ioport
->
io
.
minimum
,
spic_dev
.
cur_ioport
->
io
.
address_length
);
err_remove_compat:
sonypi_compat_exit
();
err_remove_input:
sony_laptop_remove_input
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录