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
3fb07877
Commit
3fb07877
authored
Nov 14, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Fix Acorn SCSI drivers to use ecard_{request,release}_resources
parent
5fdc4ecc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
52 deletions
+24
-52
drivers/scsi/arm/arxescsi.c
drivers/scsi/arm/arxescsi.c
+6
-13
drivers/scsi/arm/cumana_2.c
drivers/scsi/arm/cumana_2.c
+6
-13
drivers/scsi/arm/eesox.c
drivers/scsi/arm/eesox.c
+6
-13
drivers/scsi/arm/powertec.c
drivers/scsi/arm/powertec.c
+6
-13
No files found.
drivers/scsi/arm/arxescsi.c
View file @
3fb07877
...
...
@@ -286,14 +286,12 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id)
unsigned
char
*
base
;
int
ret
;
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_MEMC
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_MEMC
);
if
(
!
request_mem_region
(
resbase
,
reslen
,
"arxescsi"
))
{
ret
=
-
EBUSY
;
ret
=
ecard_request_resources
(
ec
);
if
(
ret
)
goto
out
;
}
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_MEMC
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_MEMC
);
base
=
ioremap
(
resbase
,
reslen
);
if
(
!
base
)
{
ret
=
-
ENOMEM
;
...
...
@@ -345,7 +343,7 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id)
out_unmap:
iounmap
(
base
);
out_region:
release_mem_region
(
resbase
,
reslen
);
ecard_release_resources
(
ec
);
out:
return
ret
;
}
...
...
@@ -353,20 +351,15 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id)
static
void
__devexit
arxescsi_remove
(
struct
expansion_card
*
ec
)
{
struct
Scsi_Host
*
host
=
ecard_get_drvdata
(
ec
);
unsigned
long
resbase
,
reslen
;
ecard_set_drvdata
(
ec
,
NULL
);
fas216_remove
(
host
);
iounmap
((
void
*
)
host
->
base
);
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_MEMC
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_MEMC
);
release_mem_region
(
resbase
,
reslen
);
fas216_release
(
host
);
scsi_host_put
(
host
);
ecard_release_resources
(
ec
);
}
static
const
struct
ecard_id
arxescsi_cids
[]
=
{
...
...
drivers/scsi/arm/cumana_2.c
View file @
3fb07877
...
...
@@ -408,14 +408,12 @@ cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id)
unsigned
char
*
base
;
int
ret
;
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_MEMC
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_MEMC
);
if
(
!
request_mem_region
(
resbase
,
reslen
,
"cumanascsi2"
))
{
ret
=
-
EBUSY
;
ret
=
ecard_request_resources
(
ec
);
if
(
ret
)
goto
out
;
}
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_MEMC
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_MEMC
);
base
=
ioremap
(
resbase
,
reslen
);
if
(
!
base
)
{
ret
=
-
ENOMEM
;
...
...
@@ -504,7 +502,7 @@ cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id)
iounmap
(
base
);
out_region:
release_mem_region
(
resbase
,
reslen
);
ecard_release_resources
(
ec
);
out:
return
ret
;
...
...
@@ -514,7 +512,6 @@ static void __devexit cumanascsi2_remove(struct expansion_card *ec)
{
struct
Scsi_Host
*
host
=
ecard_get_drvdata
(
ec
);
struct
cumanascsi2_info
*
info
=
(
struct
cumanascsi2_info
*
)
host
->
hostdata
;
unsigned
long
resbase
,
reslen
;
ecard_set_drvdata
(
ec
,
NULL
);
fas216_remove
(
host
);
...
...
@@ -525,13 +522,9 @@ static void __devexit cumanascsi2_remove(struct expansion_card *ec)
iounmap
((
void
*
)
host
->
base
);
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_MEMC
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_MEMC
);
release_mem_region
(
resbase
,
reslen
);
fas216_release
(
host
);
scsi_host_put
(
host
);
ecard_release_resources
(
ec
);
}
static
const
struct
ecard_id
cumanascsi2_cids
[]
=
{
...
...
drivers/scsi/arm/eesox.c
View file @
3fb07877
...
...
@@ -525,14 +525,12 @@ eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
unsigned
char
*
base
;
int
ret
;
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_IOCFAST
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_IOCFAST
);
if
(
!
request_mem_region
(
resbase
,
reslen
,
"eesoxscsi"
))
{
ret
=
-
EBUSY
;
ret
=
ecard_request_resources
(
ec
);
if
(
ret
)
goto
out
;
}
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_IOCFAST
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_IOCFAST
);
base
=
ioremap
(
resbase
,
reslen
);
if
(
!
base
)
{
ret
=
-
ENOMEM
;
...
...
@@ -622,7 +620,7 @@ eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
iounmap
(
base
);
out_region:
release_mem_region
(
resbase
,
reslen
);
ecard_release_resources
(
ec
);
out:
return
ret
;
...
...
@@ -632,7 +630,6 @@ static void __devexit eesoxscsi_remove(struct expansion_card *ec)
{
struct
Scsi_Host
*
host
=
ecard_get_drvdata
(
ec
);
struct
eesoxscsi_info
*
info
=
(
struct
eesoxscsi_info
*
)
host
->
hostdata
;
unsigned
long
resbase
,
reslen
;
ecard_set_drvdata
(
ec
,
NULL
);
fas216_remove
(
host
);
...
...
@@ -645,13 +642,9 @@ static void __devexit eesoxscsi_remove(struct expansion_card *ec)
iounmap
((
void
*
)
host
->
base
);
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_IOCFAST
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_IOCFAST
);
release_mem_region
(
resbase
,
reslen
);
fas216_release
(
host
);
scsi_host_put
(
host
);
ecard_release_resources
(
ec
);
}
static
const
struct
ecard_id
eesoxscsi_cids
[]
=
{
...
...
drivers/scsi/arm/powertec.c
View file @
3fb07877
...
...
@@ -318,14 +318,12 @@ powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
unsigned
char
*
base
;
int
ret
;
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_IOCFAST
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_IOCFAST
);
if
(
!
request_mem_region
(
resbase
,
reslen
,
"powertecscsi"
))
{
ret
=
-
EBUSY
;
ret
=
ecard_request_resources
(
ec
);
if
(
ret
)
goto
out
;
}
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_IOCFAST
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_IOCFAST
);
base
=
ioremap
(
resbase
,
reslen
);
if
(
!
base
)
{
ret
=
-
ENOMEM
;
...
...
@@ -413,7 +411,7 @@ powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
iounmap
(
base
);
out_region:
release_mem_region
(
resbase
,
reslen
);
ecard_release_resources
(
ec
);
out:
return
ret
;
...
...
@@ -423,7 +421,6 @@ static void __devexit powertecscsi_remove(struct expansion_card *ec)
{
struct
Scsi_Host
*
host
=
ecard_get_drvdata
(
ec
);
struct
powertecscsi_info
*
info
=
(
struct
powertecscsi_info
*
)
host
->
hostdata
;
unsigned
long
resbase
,
reslen
;
ecard_set_drvdata
(
ec
,
NULL
);
fas216_remove
(
host
);
...
...
@@ -436,13 +433,9 @@ static void __devexit powertecscsi_remove(struct expansion_card *ec)
iounmap
((
void
*
)
host
->
base
);
resbase
=
ecard_resource_start
(
ec
,
ECARD_RES_IOCFAST
);
reslen
=
ecard_resource_len
(
ec
,
ECARD_RES_IOCFAST
);
release_mem_region
(
resbase
,
reslen
);
fas216_release
(
host
);
scsi_host_put
(
host
);
ecard_release_resources
(
ec
);
}
static
const
struct
ecard_id
powertecscsi_cids
[]
=
{
...
...
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