Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
2e55bf6b
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看板
提交
2e55bf6b
编写于
8月 02, 2008
作者:
D
Dominik Brodowski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pcmcia: use dev_printk in module pcmcia_core
Signed-off-by:
N
Dominik Brodowski
<
linux@dominikbrodowski.net
>
上级
dd797d81
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
12 deletion
+17
-12
drivers/pcmcia/cistpl.c
drivers/pcmcia/cistpl.c
+2
-1
drivers/pcmcia/cs.c
drivers/pcmcia/cs.c
+12
-8
drivers/pcmcia/cs_internal.h
drivers/pcmcia/cs_internal.h
+3
-3
未找到文件。
drivers/pcmcia/cistpl.c
浏览文件 @
2e55bf6b
...
...
@@ -92,7 +92,8 @@ set_cis_map(struct pcmcia_socket *s, unsigned int card_offset, unsigned int flag
if
(
!
(
s
->
features
&
SS_CAP_STATIC_MAP
)
&&
(
mem
->
res
==
NULL
))
{
mem
->
res
=
pcmcia_find_mem_region
(
0
,
s
->
map_size
,
s
->
map_size
,
0
,
s
);
if
(
mem
->
res
==
NULL
)
{
printk
(
KERN_NOTICE
"cs: unable to map card memory!
\n
"
);
dev_printk
(
KERN_NOTICE
,
&
s
->
dev
,
"cs: unable to map card memory!
\n
"
);
return
NULL
;
}
s
->
cis_virt
=
NULL
;
...
...
drivers/pcmcia/cs.c
浏览文件 @
2e55bf6b
...
...
@@ -247,7 +247,8 @@ int pcmcia_register_socket(struct pcmcia_socket *socket)
wait_for_completion
(
&
socket
->
thread_done
);
if
(
!
socket
->
thread
)
{
printk
(
KERN_WARNING
"PCMCIA: warning: socket thread for socket %p did not start
\n
"
,
socket
);
dev_printk
(
KERN_WARNING
,
&
socket
->
dev
,
"PCMCIA: warning: socket thread did not start
\n
"
);
return
-
EIO
;
}
...
...
@@ -412,7 +413,8 @@ static void socket_shutdown(struct pcmcia_socket *s)
s
->
ops
->
get_status
(
s
,
&
status
);
if
(
status
&
SS_POWERON
)
{
printk
(
KERN_ERR
"PCMCIA: socket %p: *** DANGER *** unable to remove socket power
\n
"
,
s
);
dev_printk
(
KERN_ERR
,
&
s
->
dev
,
"*** DANGER *** unable to remove socket power
\n
"
);
}
cs_socket_put
(
s
);
...
...
@@ -508,9 +510,10 @@ static int socket_insert(struct pcmcia_socket *skt)
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
);
dev_printk
(
KERN_NOTICE
,
&
skt
->
dev
,
"pccard: %s card inserted into slot %d
\n
"
,
(
skt
->
state
&
SOCKET_CARDBUS
)
?
"CardBus"
:
"PCMCIA"
,
skt
->
sock
);
#ifdef CONFIG_CARDBUS
if
(
skt
->
state
&
SOCKET_CARDBUS
)
{
...
...
@@ -595,7 +598,8 @@ 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
);
dev_printk
(
KERN_NOTICE
,
&
skt
->
dev
,
"pccard: card ejected from slot %d
\n
"
,
skt
->
sock
);
socket_shutdown
(
skt
);
}
...
...
@@ -641,8 +645,8 @@ static int pccardd(void *__skt)
/* register with the device core */
ret
=
device_register
(
&
skt
->
dev
);
if
(
ret
)
{
printk
(
KERN_WARNING
"PCMCIA: unable to register socket 0x%p
\n
"
,
skt
);
dev_printk
(
KERN_WARNING
,
&
skt
->
dev
,
"PCMCIA: unable to register socket
\n
"
);
skt
->
thread
=
NULL
;
complete
(
&
skt
->
thread_done
);
return
0
;
...
...
drivers/pcmcia/cs_internal.h
浏览文件 @
2e55bf6b
...
...
@@ -137,8 +137,8 @@ extern int cs_debug_level(int);
#define cs_dbg(skt, lvl, fmt, arg...) do { \
if (cs_debug_level(lvl)) \
printk(KERN_DEBUG "cs: %s: " fmt,
\
cs_socket_name(skt) , ## arg);
\
dev_printk(KERN_DEBUG, &skt->dev,
\
"cs: " fmt, ## arg);
\
} while (0)
#else
...
...
@@ -146,6 +146,6 @@ extern int cs_debug_level(int);
#endif
#define cs_err(skt, fmt, arg...) \
printk(KERN_ERR "cs: %s: " fmt, (skt)->dev.bus_id
, ## arg)
dev_printk(KERN_ERR, &skt->dev, "cs: " fmt
, ## arg)
#endif
/* _LINUX_CS_INTERNAL_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录