Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
ee90f62b
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ee90f62b
编写于
11月 13, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge
git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-fixes-2.6
上级
70ac5516
807277cb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
8 deletion
+21
-8
drivers/pcmcia/cs.c
drivers/pcmcia/cs.c
+6
-0
drivers/pcmcia/ds.c
drivers/pcmcia/ds.c
+3
-0
drivers/pcmcia/i82365.c
drivers/pcmcia/i82365.c
+12
-8
未找到文件。
drivers/pcmcia/cs.c
浏览文件 @
ee90f62b
...
...
@@ -513,6 +513,11 @@ static int socket_insert(struct pcmcia_socket *skt)
ret
=
socket_setup
(
skt
,
setup_delay
);
if
(
ret
==
CS_SUCCESS
)
{
skt
->
state
|=
SOCKET_PRESENT
;
printk
(
KERN_NOTICE
"pccard: %s card inserted into slot %d
\n
"
,
(
skt
->
state
&
SOCKET_CARDBUS
)
?
"CardBus"
:
"PCMCIA"
,
skt
->
sock
);
#ifdef CONFIG_CARDBUS
if
(
skt
->
state
&
SOCKET_CARDBUS
)
{
cb_alloc
(
skt
);
...
...
@@ -598,6 +603,7 @@ static int socket_resume(struct pcmcia_socket *skt)
static
void
socket_remove
(
struct
pcmcia_socket
*
skt
)
{
printk
(
KERN_NOTICE
"pccard: card ejected from slot %d
\n
"
,
skt
->
sock
);
socket_shutdown
(
skt
);
cs_socket_put
(
skt
);
}
...
...
drivers/pcmcia/ds.c
浏览文件 @
ee90f62b
...
...
@@ -544,6 +544,9 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f
list_add_tail
(
&
p_dev
->
socket_device_list
,
&
s
->
devices_list
);
spin_unlock_irqrestore
(
&
pcmcia_dev_list_lock
,
flags
);
printk
(
KERN_NOTICE
"pcmcia: registering new device %s
\n
"
,
p_dev
->
devname
);
pcmcia_device_query
(
p_dev
);
if
(
device_register
(
&
p_dev
->
dev
))
{
...
...
drivers/pcmcia/i82365.c
浏览文件 @
ee90f62b
...
...
@@ -1339,10 +1339,7 @@ static struct device_driver i82365_driver = {
.
resume
=
pcmcia_socket_dev_resume
,
};
static
struct
platform_device
i82365_device
=
{
.
name
=
"i82365"
,
.
id
=
0
,
};
static
struct
platform_device
*
i82365_device
;
static
int
__init
init_i82365
(
void
)
{
...
...
@@ -1352,7 +1349,14 @@ static int __init init_i82365(void)
if
(
ret
)
return
ret
;
ret
=
platform_device_register
(
&
i82365_device
);
i82365_device
=
platform_device_alloc
(
"i82365"
,
0
);
if
(
i82365_device
)
{
ret
=
platform_device_add
(
i82365_device
);
if
(
ret
)
platform_device_put
(
i82365_device
);
}
else
ret
=
-
ENOMEM
;
if
(
ret
)
{
driver_unregister
(
&
i82365_driver
);
return
ret
;
...
...
@@ -1365,7 +1369,7 @@ static int __init init_i82365(void)
if
(
sockets
==
0
)
{
printk
(
"not found.
\n
"
);
platform_device_unregister
(
&
i82365_device
);
platform_device_unregister
(
i82365_device
);
release_region
(
i365_base
,
2
);
driver_unregister
(
&
i82365_driver
);
return
-
ENODEV
;
...
...
@@ -1377,7 +1381,7 @@ static int __init init_i82365(void)
/* register sockets with the pcmcia core */
for
(
i
=
0
;
i
<
sockets
;
i
++
)
{
socket
[
i
].
socket
.
dev
.
dev
=
&
i82365_device
.
dev
;
socket
[
i
].
socket
.
dev
.
dev
=
&
i82365_device
->
dev
;
socket
[
i
].
socket
.
ops
=
&
pcic_operations
;
socket
[
i
].
socket
.
resource_ops
=
&
pccard_nonstatic_ops
;
socket
[
i
].
socket
.
owner
=
THIS_MODULE
;
...
...
@@ -1415,7 +1419,7 @@ static void __exit exit_i82365(void)
if
(
socket
[
i
].
flags
&
IS_REGISTERED
)
pcmcia_unregister_socket
(
&
socket
[
i
].
socket
);
}
platform_device_unregister
(
&
i82365_device
);
platform_device_unregister
(
i82365_device
);
if
(
poll_interval
!=
0
)
del_timer_sync
(
&
poll_timer
);
if
(
grab_irq
!=
0
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录