Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1ace7566
Commit
1ace7566
authored
Jul 07, 2011
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: io: ecard: move ioaddr() inside __ecard_address
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
d0a84e72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
arch/arm/include/asm/ecard.h
arch/arm/include/asm/ecard.h
+0
-1
arch/arm/kernel/ecard.c
arch/arm/kernel/ecard.c
+6
-5
No files found.
arch/arm/include/asm/ecard.h
View file @
1ace7566
...
...
@@ -161,7 +161,6 @@ struct expansion_card {
/* Private internal data */
const
char
*
card_desc
;
/* Card description */
CONST
unsigned
int
podaddr
;
/* Base Linux address for card */
CONST
loader_t
loader
;
/* loader program */
u64
dma_mask
;
};
...
...
arch/arm/kernel/ecard.c
View file @
1ace7566
...
...
@@ -678,13 +678,13 @@ static int __init ecard_probeirqhw(void)
#define IO_EC_MEMC8_BASE 0
#endif
static
unsigned
int
__ecard_address
(
ecard_t
*
ec
,
card_type_t
type
,
card_speed_t
speed
)
static
void
__iomem
*
__ecard_address
(
ecard_t
*
ec
,
card_type_t
type
,
card_speed_t
speed
)
{
unsigned
long
address
=
0
;
int
slot
=
ec
->
slot_no
;
if
(
ec
->
slot_no
==
8
)
return
IO_EC_MEMC8_BASE
;
return
(
void
__iomem
*
)
ioaddr
(
IO_EC_MEMC8_BASE
)
;
ectcr
&=
~
(
1
<<
slot
);
...
...
@@ -719,7 +719,7 @@ static unsigned int __ecard_address(ecard_t *ec, card_type_t type, card_speed_t
#ifdef IOMD_ECTCR
iomd_writeb
(
ectcr
,
IOMD_ECTCR
);
#endif
return
address
;
return
(
void
__iomem
*
)(
address
?
ioaddr
(
address
)
:
NULL
)
;
}
static
int
ecard_prints
(
struct
seq_file
*
m
,
ecard_t
*
ec
)
...
...
@@ -990,6 +990,7 @@ ecard_probe(int slot, card_type_t type)
ecard_t
**
ecp
;
ecard_t
*
ec
;
struct
ex_ecid
cid
;
void
__iomem
*
addr
;
int
i
,
rc
;
ec
=
ecard_alloc_card
(
type
,
slot
);
...
...
@@ -999,7 +1000,7 @@ ecard_probe(int slot, card_type_t type)
}
rc
=
-
ENODEV
;
if
((
ec
->
podaddr
=
__ecard_address
(
ec
,
type
,
ECARD_SYNC
))
==
0
)
if
((
addr
=
__ecard_address
(
ec
,
type
,
ECARD_SYNC
))
==
NULL
)
goto
nodev
;
cid
.
r_zero
=
1
;
...
...
@@ -1019,7 +1020,7 @@ ecard_probe(int slot, card_type_t type)
ec
->
cid
.
fiqmask
=
cid
.
r_fiqmask
;
ec
->
cid
.
fiqoff
=
ecard_gets24
(
cid
.
r_fiqoff
);
ec
->
fiqaddr
=
ec
->
irqaddr
=
(
void
__iomem
*
)
ioaddr
(
ec
->
podaddr
)
;
ec
->
irqaddr
=
addr
;
if
(
ec
->
cid
.
is
)
{
ec
->
irqmask
=
ec
->
cid
.
irqmask
;
...
...
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