|
@@ -124,7 +124,7 @@ struct s3c24xx_i2c {
|
|
struct s3c2410_platform_i2c *pdata;
|
|
struct s3c2410_platform_i2c *pdata;
|
|
int gpios[2];
|
|
int gpios[2];
|
|
struct pinctrl *pctrl;
|
|
struct pinctrl *pctrl;
|
|
-#ifdef CONFIG_CPU_FREQ
|
|
|
|
|
|
+#if defined(CONFIG_ARM_S3C24XX_CPUFREQ)
|
|
struct notifier_block freq_transition;
|
|
struct notifier_block freq_transition;
|
|
#endif
|
|
#endif
|
|
};
|
|
};
|
|
@@ -887,7 +887,7 @@ static int s3c24xx_i2c_clockrate(struct s3c24xx_i2c *i2c, unsigned int *got)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_CPU_FREQ
|
|
|
|
|
|
+#if defined(CONFIG_ARM_S3C24XX_CPUFREQ)
|
|
|
|
|
|
#define freq_to_i2c(_n) container_of(_n, struct s3c24xx_i2c, freq_transition)
|
|
#define freq_to_i2c(_n) container_of(_n, struct s3c24xx_i2c, freq_transition)
|
|
|
|
|