]> git.sur5r.net Git - u-boot/blobdiff - board/samsung/smdkc100/onenand.c
linux/compat.h: rename from linux/mtd/compat.h
[u-boot] / board / samsung / smdkc100 / onenand.c
index c25869e5c402206d3e5451f607fa7aa187d44741..e34cd31f24a4002cb343f187e6c62edb720598fa 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #include <common.h>
-#include <linux/mtd/compat.h>
+#include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
 #include <linux/mtd/samsung_onenand.h>
@@ -35,7 +35,8 @@
 void onenand_board_init(struct mtd_info *mtd)
 {
        struct onenand_chip *this = mtd->priv;
-       struct s5pc100_clock *clk = (struct s5pc100_clock *)S5PC1XX_CLOCK_BASE;
+       struct s5pc100_clock *clk =
+                       (struct s5pc100_clock *)samsung_get_base_clock();
        struct samsung_onenand *onenand;
        int value;