ARM: 5881/1: vic.c: reorganize code
authorHartley Sweeten <hartleys@visionengravers.com>
Tue, 12 Jan 2010 18:09:12 +0000 (19:09 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 20 Jan 2010 12:28:29 +0000 (12:28 +0000)
commitbb06b737143bd35939e65b05e073019c5c451be9
treec93b12671e0d4a0a8d40fe9d50e66490af48b90d
parent346e34abb2c56695ee4bd6af924141c97a0babfb
ARM: 5881/1: vic.c: reorganize code

This reorganizes the vic.c code in anticipation of a second patch
to use struct vic_device as the data stored in set_irq_chip_data().

The code now has the following flow:

1) struct vic_device definition, static variables, and to_vic()
   moved to the start of the code.
2) common code (vic_init2)
3) vic power management callbacks
4) vic power management initialization/registration
5) irq_chip callbacks
6) vendor specific vic initialization
7) vic initialization

In addition the typo vik_init_st is fixed (vic_init_st).

There is no functional change with this patch.

Tested-by: Linus Walleij <linus.walleij@stericsson.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Alessandro Rubini <rubini-list@gnudd.com>
Comments from Hartley Sweeten:

 Please change from Cc to:
Tested-by: Alessandro Rubini <rubini@unipv.it>
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/vic.c