Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
dbe4ea5f
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看板
提交
dbe4ea5f
编写于
8月 02, 2008
作者:
D
Dominik Brodowski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pcmcia: use dev_printk in module rsrc_nonstatic
Signed-off-by:
N
Dominik Brodowski
<
linux@dominikbrodowski.net
>
上级
ac449d6e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
15 deletion
+18
-15
drivers/pcmcia/rsrc_nonstatic.c
drivers/pcmcia/rsrc_nonstatic.c
+18
-15
未找到文件。
drivers/pcmcia/rsrc_nonstatic.c
浏览文件 @
dbe4ea5f
...
...
@@ -194,13 +194,14 @@ static void do_io_probe(struct pcmcia_socket *s, unsigned int base,
int
any
;
u_char
*
b
,
hole
,
most
;
printk
(
KERN_INFO
"cs: IO port probe %#x-%#x:"
,
base
,
base
+
num
-
1
);
dev_printk
(
KERN_INFO
,
&
s
->
dev
,
"cs: IO port probe %#x-%#x:"
,
base
,
base
+
num
-
1
);
/* First, what does a floating port look like? */
b
=
kzalloc
(
256
,
GFP_KERNEL
);
if
(
!
b
)
{
printk
(
KERN_ERR
"do_io_probe: unable to kmalloc 256 bytes"
);
dev_printk
(
KERN_ERR
,
&
s
->
dev
,
"do_io_probe: unable to kmalloc 256 bytes"
);
return
;
}
for
(
i
=
base
,
most
=
0
;
i
<
base
+
num
;
i
+=
8
)
{
...
...
@@ -366,8 +367,8 @@ static int do_mem_probe(u_long base, u_long num, struct pcmcia_socket *s)
struct
socket_data
*
s_data
=
s
->
resource_data
;
u_long
i
,
j
,
bad
,
fail
,
step
;
printk
(
KERN_INFO
"cs: memory probe 0x%06lx-0x%06lx:"
,
base
,
base
+
num
-
1
);
dev_printk
(
KERN_INFO
,
&
s
->
dev
,
"cs: memory probe 0x%06lx-0x%06lx:"
,
base
,
base
+
num
-
1
);
bad
=
fail
=
0
;
step
=
(
num
<
0x20000
)
?
0x2000
:
((
num
>>
4
)
&
~
0x1fff
);
/* don't allow too large steps */
...
...
@@ -431,8 +432,8 @@ static int validate_mem(struct pcmcia_socket *s, unsigned int probe_mask)
if
(
probe_mask
&
MEM_PROBE_HIGH
)
{
if
(
inv_probe
(
s_data
->
mem_db
.
next
,
s
)
>
0
)
return
0
;
printk
(
KERN_NOTICE
"cs: warning: no high memory space "
"
available!
\n
"
);
dev_printk
(
KERN_NOTICE
,
&
s
->
dev
,
"cs: warning: no high memory space
available!
\n
"
);
return
-
ENODEV
;
}
...
...
@@ -794,10 +795,11 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
if
(
res
->
flags
&
IORESOURCE_IO
)
{
if
(
res
==
&
ioport_resource
)
continue
;
printk
(
KERN_INFO
"pcmcia: parent PCI bridge I/O "
"window: 0x%llx - 0x%llx
\n
"
,
(
unsigned
long
long
)
res
->
start
,
(
unsigned
long
long
)
res
->
end
);
dev_printk
(
KERN_INFO
,
&
s
->
cb_dev
->
dev
,
"pcmcia: parent PCI bridge I/O "
"window: 0x%llx - 0x%llx
\n
"
,
(
unsigned
long
long
)
res
->
start
,
(
unsigned
long
long
)
res
->
end
);
if
(
!
adjust_io
(
s
,
ADD_MANAGED_RESOURCE
,
res
->
start
,
res
->
end
))
done
|=
IORESOURCE_IO
;
...
...
@@ -806,10 +808,11 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
if
(
res
->
flags
&
IORESOURCE_MEM
)
{
if
(
res
==
&
iomem_resource
)
continue
;
printk
(
KERN_INFO
"pcmcia: parent PCI bridge Memory "
"window: 0x%llx - 0x%llx
\n
"
,
(
unsigned
long
long
)
res
->
start
,
(
unsigned
long
long
)
res
->
end
);
dev_printk
(
KERN_INFO
,
&
s
->
cb_dev
->
dev
,
"pcmcia: parent PCI bridge Memory "
"window: 0x%llx - 0x%llx
\n
"
,
(
unsigned
long
long
)
res
->
start
,
(
unsigned
long
long
)
res
->
end
);
if
(
!
adjust_memory
(
s
,
ADD_MANAGED_RESOURCE
,
res
->
start
,
res
->
end
))
done
|=
IORESOURCE_MEM
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录