git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
memstick: fix MSProHG 8-bit interface mode support
[pandora-kernel.git]
/
drivers
/
memstick
/
core
/
memstick.c
diff --git
a/drivers/memstick/core/memstick.c
b/drivers/memstick/core/memstick.c
index
a380050
..
cea4690
100644
(file)
--- a/
drivers/memstick/core/memstick.c
+++ b/
drivers/memstick/core/memstick.c
@@
-185,7
+185,7
@@
static void memstick_free(struct device *dev)
}
static struct class memstick_host_class = {
}
static struct class memstick_host_class = {
- .name = "memstick_host",
+ .name
= "memstick_host",
.dev_release = memstick_free
};
.dev_release = memstick_free
};
@@
-264,7
+264,7
@@
EXPORT_SYMBOL(memstick_new_req);
* @sg - TPC argument
*/
void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc,
* @sg - TPC argument
*/
void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc,
- struct scatterlist *sg)
+
const
struct scatterlist *sg)
{
mrq->tpc = tpc;
if (tpc & 8)
{
mrq->tpc = tpc;
if (tpc & 8)
@@
-294,7
+294,7
@@
EXPORT_SYMBOL(memstick_init_req_sg);
* user supplied buffer.
*/
void memstick_init_req(struct memstick_request *mrq, unsigned char tpc,
* user supplied buffer.
*/
void memstick_init_req(struct memstick_request *mrq, unsigned char tpc,
- void *buf, size_t length)
+
const
void *buf, size_t length)
{
mrq->tpc = tpc;
if (tpc & 8)
{
mrq->tpc = tpc;
if (tpc & 8)
@@
-439,7
+439,7
@@
static void memstick_check(struct work_struct *work)
if (!host->card) {
if (memstick_power_on(host))
goto out_power_off;
if (!host->card) {
if (memstick_power_on(host))
goto out_power_off;
- } else
+ } else
if (host->card->stop)
host->card->stop(host->card);
card = memstick_alloc_card(host);
host->card->stop(host->card);
card = memstick_alloc_card(host);
@@
-458,7
+458,7
@@
static void memstick_check(struct work_struct *work)
|| !(host->card->check(host->card))) {
device_unregister(&host->card->dev);
host->card = NULL;
|| !(host->card->check(host->card))) {
device_unregister(&host->card->dev);
host->card = NULL;
- } else
+ } else
if (host->card->start)
host->card->start(host->card);
}
host->card->start(host->card);
}