]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/cpm: Reintroduce global spi_pram struct (fixes build issue)
authorAnton Vorontsov <avorontsov@mvista.com>
Thu, 8 Jul 2010 17:16:10 +0000 (21:16 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:26:39 +0000 (10:26 -0700)
commitbb5594c805d9b8857fc37a83a2b13ef45ba1a25a
tree4896f2a811aa7628f6ecf18b013e7c0a425f9241
parent185f2172bd89d83b14cb9e49fc63e6c956338d52
powerpc/cpm: Reintroduce global spi_pram struct (fixes build issue)

commit 56825c88ff438f4dbb51a44591cc29e707fe783a upstream.

spi_t was removed in commit 644b2a680ccc51a9ec4d6beb12e9d47d2dee98e2
("powerpc/cpm: Remove SPI defines and spi structs"), the commit assumed
that spi_t isn't used anywhere outside of the spi_mpc8xxx driver. But
it appears that the struct is needed for micropatch code. So, let's
reintroduce the struct.

Fixes the following build issue:

    CC      arch/powerpc/sysdev/micropatch.o
  micropatch.c: In function 'cpm_load_patch':
  micropatch.c:629: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  micropatch.c:629: error: 'spp' undeclared (first use in this function)
  micropatch.c:629: error: (Each undeclared identifier is reported only once
  micropatch.c:629: error: for each function it appears in.)

Reported-by: LEROY Christophe <christophe.leroy@c-s.fr>
Reported-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/include/asm/cpm.h
arch/powerpc/sysdev/micropatch.c
drivers/spi/spi_mpc8xxx.c