Commit 5d870c8e authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[PATCH] spi: remove fastcall crap

gcc4 generates warnings when a non-FASTCALL function pointer is assigned to a
FASTCALL one.  Perhaps it has taste.

Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7111763d
...@@ -480,6 +480,11 @@ EXPORT_SYMBOL_GPL(spi_busnum_to_master); ...@@ -480,6 +480,11 @@ EXPORT_SYMBOL_GPL(spi_busnum_to_master);
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
static void spi_complete(void *arg)
{
complete(arg);
}
/** /**
* spi_sync - blocking/synchronous SPI data transfers * spi_sync - blocking/synchronous SPI data transfers
* @spi: device with which data will be exchanged * @spi: device with which data will be exchanged
...@@ -508,7 +513,7 @@ int spi_sync(struct spi_device *spi, struct spi_message *message) ...@@ -508,7 +513,7 @@ int spi_sync(struct spi_device *spi, struct spi_message *message)
DECLARE_COMPLETION(done); DECLARE_COMPLETION(done);
int status; int status;
message->complete = (void (*)(void *)) complete; message->complete = spi_complete;
message->context = &done; message->context = &done;
status = spi_async(spi, message); status = spi_async(spi, message);
if (status == 0) if (status == 0)
......
...@@ -374,7 +374,7 @@ struct spi_message { ...@@ -374,7 +374,7 @@ struct spi_message {
*/ */
/* completion is reported through a callback */ /* completion is reported through a callback */
void FASTCALL((*complete)(void *context)); void (*complete)(void *context);
void *context; void *context;
unsigned actual_length; unsigned actual_length;
int status; int status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment