[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>

authored by Andrew Morton and committed by Greg Kroah-Hartman 5d870c8e 7111763d

+7 -2
+6 -1
drivers/spi/spi.c
··· 480 481 /*-------------------------------------------------------------------------*/ 482 483 /** 484 * spi_sync - blocking/synchronous SPI data transfers 485 * @spi: device with which data will be exchanged ··· 513 DECLARE_COMPLETION(done); 514 int status; 515 516 - message->complete = (void (*)(void *)) complete; 517 message->context = &done; 518 status = spi_async(spi, message); 519 if (status == 0)
··· 480 481 /*-------------------------------------------------------------------------*/ 482 483 + static void spi_complete(void *arg) 484 + { 485 + complete(arg); 486 + } 487 + 488 /** 489 * spi_sync - blocking/synchronous SPI data transfers 490 * @spi: device with which data will be exchanged ··· 508 DECLARE_COMPLETION(done); 509 int status; 510 511 + message->complete = spi_complete; 512 message->context = &done; 513 status = spi_async(spi, message); 514 if (status == 0)
+1 -1
include/linux/spi/spi.h
··· 374 */ 375 376 /* completion is reported through a callback */ 377 - void FASTCALL((*complete)(void *context)); 378 void *context; 379 unsigned actual_length; 380 int status;
··· 374 */ 375 376 /* completion is reported through a callback */ 377 + void (*complete)(void *context); 378 void *context; 379 unsigned actual_length; 380 int status;