]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - arch/powerpc/sysdev/micropatch.c
powerpc/cpm1: Fix build with various CONFIG_*_UCODE_PATCH combinations
[lisovros/linux_canprio.git] / arch / powerpc / sysdev / micropatch.c
index 18080f376e1a5ca18b9b3531f99f5053fae42214..6c56ae902d4cafd883463e47bcc54e05f48c5eac 100644 (file)
@@ -626,9 +626,14 @@ cpm_load_patch(cpm8xx_t    *cp)
 {
        volatile uint           *dp;            /* Dual-ported RAM. */
        volatile cpm8xx_t       *commproc;
+#if defined(CONFIG_I2C_SPI_UCODE_PATCH) || \
+    defined(CONFIG_I2C_SPI_SMC1_UCODE_PATCH)
        volatile iic_t          *iip;
        volatile struct spi_pram *spp;
+#ifdef CONFIG_I2C_SPI_SMC1_UCODE_PATCH
        volatile smc_uart_t     *smp;
+#endif
+#endif
        int     i;
 
        commproc = cp;