sh: sh7722: fix Oops: remove empty clock entries
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 23 Nov 2011 21:53:46 +0000 (22:53 +0100)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 24 Nov 2011 07:00:03 +0000 (16:00 +0900)
Unused indices produce empty entries in the clock array, which then lead to
Oopses at boot-time.

Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/cpu-sh4/cpu/sh7722.h

index bd0622788d64a83ccb7f57799cb16c3143360cc9..3bb74e534d0f8ca44208827d762e9dec03b2525a 100644 (file)
@@ -222,14 +222,11 @@ enum {
 };
 
 enum {
-       HWBLK_UNKNOWN = 0,
-       HWBLK_TLB, HWBLK_IC, HWBLK_OC, HWBLK_URAM, HWBLK_XYMEM,
-       HWBLK_INTC, HWBLK_DMAC, HWBLK_SHYWAY, HWBLK_HUDI,
-       HWBLK_UBC, HWBLK_TMU, HWBLK_CMT, HWBLK_RWDT, HWBLK_FLCTL,
-       HWBLK_SCIF0, HWBLK_SCIF1, HWBLK_SCIF2, HWBLK_SIO,
-       HWBLK_SIOF0, HWBLK_SIOF1, HWBLK_IIC, HWBLK_RTC,
-       HWBLK_TPU, HWBLK_IRDA, HWBLK_SDHI, HWBLK_SIM, HWBLK_KEYSC,
-       HWBLK_TSIF, HWBLK_USBF, HWBLK_2DG, HWBLK_SIU, HWBLK_VOU,
+       HWBLK_URAM, HWBLK_XYMEM,
+       HWBLK_TMU, HWBLK_CMT, HWBLK_RWDT, HWBLK_FLCTL,
+       HWBLK_SCIF0, HWBLK_SCIF1, HWBLK_SCIF2, HWBLK_IIC, HWBLK_RTC,
+       HWBLK_SDHI, HWBLK_KEYSC,
+       HWBLK_USBF, HWBLK_2DG, HWBLK_SIU, HWBLK_VOU,
        HWBLK_JPU, HWBLK_BEU, HWBLK_CEU, HWBLK_VEU, HWBLK_VPU,
        HWBLK_LCDC,
        HWBLK_NR,