diff options
author | Andrew Morton <akpm@osdl.org> | 2006-01-11 14:23:49 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-13 19:29:56 -0500 |
commit | 5d870c8e216f121307445c71caa72e7e10a20061 (patch) | |
tree | d1d73cf5e520a10086f9a50a00fecb6041def89d | |
parent | 7111763d391b0c5a949a4f2575aa88cd585f0ff6 (diff) |
[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/spi/spi.c | 7 | ||||
-rw-r--r-- | include/linux/spi/spi.h | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index cdb242de901d..791c4dc550ae 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -480,6 +480,11 @@ EXPORT_SYMBOL_GPL(spi_busnum_to_master); | |||
480 | 480 | ||
481 | /*-------------------------------------------------------------------------*/ | 481 | /*-------------------------------------------------------------------------*/ |
482 | 482 | ||
483 | static void spi_complete(void *arg) | ||
484 | { | ||
485 | complete(arg); | ||
486 | } | ||
487 | |||
483 | /** | 488 | /** |
484 | * spi_sync - blocking/synchronous SPI data transfers | 489 | * spi_sync - blocking/synchronous SPI data transfers |
485 | * @spi: device with which data will be exchanged | 490 | * @spi: device with which data will be exchanged |
@@ -508,7 +513,7 @@ int spi_sync(struct spi_device *spi, struct spi_message *message) | |||
508 | DECLARE_COMPLETION(done); | 513 | DECLARE_COMPLETION(done); |
509 | int status; | 514 | int status; |
510 | 515 | ||
511 | message->complete = (void (*)(void *)) complete; | 516 | message->complete = spi_complete; |
512 | message->context = &done; | 517 | message->context = &done; |
513 | status = spi_async(spi, message); | 518 | status = spi_async(spi, message); |
514 | if (status == 0) | 519 | if (status == 0) |
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 939afd3a2e72..b05f1463a267 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -374,7 +374,7 @@ struct spi_message { | |||
374 | */ | 374 | */ |
375 | 375 | ||
376 | /* completion is reported through a callback */ | 376 | /* completion is reported through a callback */ |
377 | void FASTCALL((*complete)(void *context)); | 377 | void (*complete)(void *context); |
378 | void *context; | 378 | void *context; |
379 | unsigned actual_length; | 379 | unsigned actual_length; |
380 | int status; | 380 | int status; |