[PATCH] spi: remove fastcall crap
authorAndrew Morton <akpm@osdl.org>
Wed, 11 Jan 2006 19:23:49 +0000 (11:23 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 14 Jan 2006 00:29:56 +0000 (16:29 -0800)
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>
drivers/spi/spi.c
include/linux/spi/spi.h

index cdb242de901d1c1036ded5cb17410874ef917457..791c4dc550aee0e7df764270282ef977edf6a151 100644 (file)
@@ -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: device with which data will be exchanged
@@ -508,7 +513,7 @@ int spi_sync(struct spi_device *spi, struct spi_message *message)
        DECLARE_COMPLETION(done);
        int status;
 
-       message->complete = (void (*)(void *)) complete;
+       message->complete = spi_complete;
        message->context = &done;
        status = spi_async(spi, message);
        if (status == 0)
index 939afd3a2e722544976ce05b1d0bc62b0138056f..b05f1463a2676de35237dda137772ad70dc1c93d 100644 (file)
@@ -374,7 +374,7 @@ struct spi_message {
         */
 
        /* completion is reported through a callback */
-       void                    FASTCALL((*complete)(void *context));
+       void                    (*complete)(void *context);
        void                    *context;
        unsigned                actual_length;
        int                     status;