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
Kirill Smelkov
linux
Commits
bb64ab54
Commit
bb64ab54
authored
Aug 30, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MMC] Use local card pointer rather than md->queue.card
parent
9a276d67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/mmc/mmc_block.c
drivers/mmc/mmc_block.c
+3
-3
No files found.
drivers/mmc/mmc_block.c
View file @
bb64ab54
...
...
@@ -334,11 +334,11 @@ static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card)
sprintf
(
md
->
disk
->
disk_name
,
"mmcblk%d"
,
devidx
);
sprintf
(
md
->
disk
->
devfs_name
,
"mmc/blk%d"
,
devidx
);
md
->
block_bits
=
md
->
queue
.
card
->
csd
.
read_blkbits
;
md
->
block_bits
=
card
->
csd
.
read_blkbits
;
blk_queue_max_sectors
(
md
->
queue
.
queue
,
maxsectors
);
blk_queue_hardsect_size
(
md
->
queue
.
queue
,
1
<<
md
->
block_bits
);
set_capacity
(
md
->
disk
,
md
->
queue
.
card
->
csd
.
capacity
);
set_capacity
(
md
->
disk
,
card
->
csd
.
capacity
);
}
out:
return
md
;
...
...
@@ -440,7 +440,7 @@ static int mmc_blk_resume(struct mmc_card *card)
struct
mmc_blk_data
*
md
=
mmc_get_drvdata
(
card
);
if
(
md
)
{
mmc_blk_set_blksize
(
md
,
md
->
queue
.
card
);
mmc_blk_set_blksize
(
md
,
card
);
blk_start_queue
(
md
->
queue
.
queue
);
}
return
0
;
...
...
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