sh: add the sh_ prefix to early platform symbols
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 3 Oct 2019 09:29:13 +0000 (11:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 11:50:48 +0000 (13:50 +0200)
Old early platform device support is now sh-specific. Before moving on
to implementing new early platform framework based on real platform
devices, prefix all early platform symbols with 'sh_'.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Rich Felker <dalias@libc.org>
Link: https://lore.kernel.org/r/20191003092913.10731-3-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
37 files changed:
arch/sh/drivers/platform_early.c
arch/sh/include/asm/platform_early.h
arch/sh/kernel/cpu/sh2/setup-sh7619.c
arch/sh/kernel/cpu/sh2a/setup-mxg.c
arch/sh/kernel/cpu/sh2a/setup-sh7201.c
arch/sh/kernel/cpu/sh2a/setup-sh7203.c
arch/sh/kernel/cpu/sh2a/setup-sh7206.c
arch/sh/kernel/cpu/sh2a/setup-sh7264.c
arch/sh/kernel/cpu/sh2a/setup-sh7269.c
arch/sh/kernel/cpu/sh3/setup-sh7705.c
arch/sh/kernel/cpu/sh3/setup-sh770x.c
arch/sh/kernel/cpu/sh3/setup-sh7710.c
arch/sh/kernel/cpu/sh3/setup-sh7720.c
arch/sh/kernel/cpu/sh4/setup-sh4-202.c
arch/sh/kernel/cpu/sh4/setup-sh7750.c
arch/sh/kernel/cpu/sh4/setup-sh7760.c
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
arch/sh/kernel/cpu/sh4a/setup-sh7734.c
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
arch/sh/kernel/cpu/sh4a/setup-sh7780.c
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
arch/sh/kernel/cpu/sh4a/setup-shx3.c
arch/sh/kernel/cpu/sh5/setup-sh5.c
arch/sh/kernel/setup.c
arch/sh/kernel/time.c
drivers/clocksource/sh_cmt.c
drivers/clocksource/sh_mtu2.c
drivers/clocksource/sh_tmu.c
drivers/tty/serial/sh-sci.c
include/linux/platform_device.h

index 3dfe9f3541bb7668eb9aac470ad80c0b91d8c61c..f6d148451dfc724eb8f2fa5bf4916d8d459136d8 100644 (file)
@@ -4,8 +4,8 @@
 #include <linux/mod_devicetable.h>
 #include <linux/pm.h>
 
-static __initdata LIST_HEAD(early_platform_driver_list);
-static __initdata LIST_HEAD(early_platform_device_list);
+static __initdata LIST_HEAD(sh_early_platform_driver_list);
+static __initdata LIST_HEAD(sh_early_platform_device_list);
 
 static const struct platform_device_id *
 platform_match_id(const struct platform_device_id *id,
@@ -58,13 +58,13 @@ static void pm_runtime_early_init(struct device *dev) {}
 #endif
 
 /**
- * early_platform_driver_register - register early platform driver
- * @epdrv: early_platform driver structure
+ * sh_early_platform_driver_register - register early platform driver
+ * @epdrv: sh_early_platform driver structure
  * @buf: string passed from early_param()
  *
- * Helper function for early_platform_init() / early_platform_init_buffer()
+ * Helper function for sh_early_platform_init() / sh_early_platform_init_buffer()
  */
-int __init early_platform_driver_register(struct early_platform_driver *epdrv,
+int __init sh_early_platform_driver_register(struct sh_early_platform_driver *epdrv,
                                          char *buf)
 {
        char *tmp;
@@ -75,7 +75,7 @@ int __init early_platform_driver_register(struct early_platform_driver *epdrv,
         */
        if (!epdrv->list.next) {
                INIT_LIST_HEAD(&epdrv->list);
-               list_add_tail(&epdrv->list, &early_platform_driver_list);
+               list_add_tail(&epdrv->list, &sh_early_platform_driver_list);
        }
 
        /* If the user has specified device then make sure the driver
@@ -84,7 +84,7 @@ int __init early_platform_driver_register(struct early_platform_driver *epdrv,
         */
        n = strlen(epdrv->pdrv->driver.name);
        if (buf && !strncmp(buf, epdrv->pdrv->driver.name, n)) {
-               list_move(&epdrv->list, &early_platform_driver_list);
+               list_move(&epdrv->list, &sh_early_platform_driver_list);
 
                /* Allow passing parameters after device name */
                if (buf[n] == '\0' || buf[n] == ',')
@@ -114,14 +114,14 @@ int __init early_platform_driver_register(struct early_platform_driver *epdrv,
 }
 
 /**
- * early_platform_add_devices - adds a number of early platform devices
+ * sh_early_platform_add_devices - adds a number of early platform devices
  * @devs: array of early platform devices to add
  * @num: number of early platform devices in array
  *
  * Used by early architecture code to register early platform devices and
  * their platform data.
  */
-void __init early_platform_add_devices(struct platform_device **devs, int num)
+void __init sh_early_platform_add_devices(struct platform_device **devs, int num)
 {
        struct device *dev;
        int i;
@@ -134,20 +134,20 @@ void __init early_platform_add_devices(struct platform_device **devs, int num)
                        pm_runtime_early_init(dev);
                        INIT_LIST_HEAD(&dev->devres_head);
                        list_add_tail(&dev->devres_head,
-                                     &early_platform_device_list);
+                                     &sh_early_platform_device_list);
                }
        }
 }
 
 /**
- * early_platform_driver_register_all - register early platform drivers
+ * sh_early_platform_driver_register_all - register early platform drivers
  * @class_str: string to identify early platform driver class
  *
  * Used by architecture code to register all early platform drivers
  * for a certain class. If omitted then only early platform drivers
  * with matching kernel command line class parameters will be registered.
  */
-void __init early_platform_driver_register_all(char *class_str)
+void __init sh_early_platform_driver_register_all(char *class_str)
 {
        /* The "class_str" parameter may or may not be present on the kernel
         * command line. If it is present then there may be more than one
@@ -160,23 +160,23 @@ void __init early_platform_driver_register_all(char *class_str)
         * We use parse_early_options() to make sure the early_param() gets
         * called at least once. The early_param() may be called more than
         * once since the name of the preferred device may be specified on
-        * the kernel command line. early_platform_driver_register() handles
+        * the kernel command line. sh_early_platform_driver_register() handles
         * this case for us.
         */
        parse_early_options(class_str);
 }
 
 /**
- * early_platform_match - find early platform device matching driver
+ * sh_early_platform_match - find early platform device matching driver
  * @epdrv: early platform driver structure
  * @id: id to match against
  */
 static struct platform_device * __init
-early_platform_match(struct early_platform_driver *epdrv, int id)
+sh_early_platform_match(struct sh_early_platform_driver *epdrv, int id)
 {
        struct platform_device *pd;
 
-       list_for_each_entry(pd, &early_platform_device_list, dev.devres_head)
+       list_for_each_entry(pd, &sh_early_platform_device_list, dev.devres_head)
                if (platform_match(&pd->dev, &epdrv->pdrv->driver))
                        if (pd->id == id)
                                return pd;
@@ -185,16 +185,16 @@ early_platform_match(struct early_platform_driver *epdrv, int id)
 }
 
 /**
- * early_platform_left - check if early platform driver has matching devices
+ * sh_early_platform_left - check if early platform driver has matching devices
  * @epdrv: early platform driver structure
  * @id: return true if id or above exists
  */
-static int __init early_platform_left(struct early_platform_driver *epdrv,
+static int __init sh_early_platform_left(struct sh_early_platform_driver *epdrv,
                                       int id)
 {
        struct platform_device *pd;
 
-       list_for_each_entry(pd, &early_platform_device_list, dev.devres_head)
+       list_for_each_entry(pd, &sh_early_platform_device_list, dev.devres_head)
                if (platform_match(&pd->dev, &epdrv->pdrv->driver))
                        if (pd->id >= id)
                                return 1;
@@ -203,22 +203,22 @@ static int __init early_platform_left(struct early_platform_driver *epdrv,
 }
 
 /**
- * early_platform_driver_probe_id - probe drivers matching class_str and id
+ * sh_early_platform_driver_probe_id - probe drivers matching class_str and id
  * @class_str: string to identify early platform driver class
  * @id: id to match against
  * @nr_probe: number of platform devices to successfully probe before exiting
  */
-static int __init early_platform_driver_probe_id(char *class_str,
+static int __init sh_early_platform_driver_probe_id(char *class_str,
                                                 int id,
                                                 int nr_probe)
 {
-       struct early_platform_driver *epdrv;
+       struct sh_early_platform_driver *epdrv;
        struct platform_device *match;
        int match_id;
        int n = 0;
        int left = 0;
 
-       list_for_each_entry(epdrv, &early_platform_driver_list, list) {
+       list_for_each_entry(epdrv, &sh_early_platform_driver_list, list) {
                /* only use drivers matching our class_str */
                if (strcmp(class_str, epdrv->class_str))
                        continue;
@@ -229,7 +229,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
 
                } else {
                        match_id = id;
-                       left += early_platform_left(epdrv, id);
+                       left += sh_early_platform_left(epdrv, id);
 
                        /* skip requested id */
                        switch (epdrv->requested_id) {
@@ -251,7 +251,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
                        match = NULL;
                        break;
                default:
-                       match = early_platform_match(epdrv, match_id);
+                       match = sh_early_platform_match(epdrv, match_id);
                }
 
                if (match) {
@@ -293,7 +293,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
 }
 
 /**
- * early_platform_driver_probe - probe a class of registered drivers
+ * sh_early_platform_driver_probe - probe a class of registered drivers
  * @class_str: string to identify early platform driver class
  * @nr_probe: number of platform devices to successfully probe before exiting
  * @user_only: only probe user specified early platform devices
@@ -302,7 +302,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
  * within a certain class. For probe to happen a registered early platform
  * device matching a registered early platform driver is needed.
  */
-int __init early_platform_driver_probe(char *class_str,
+int __init sh_early_platform_driver_probe(char *class_str,
                                       int nr_probe,
                                       int user_only)
 {
@@ -310,7 +310,7 @@ int __init early_platform_driver_probe(char *class_str,
 
        n = 0;
        for (i = -2; n < nr_probe; i++) {
-               k = early_platform_driver_probe_id(class_str, i, nr_probe - n);
+               k = sh_early_platform_driver_probe_id(class_str, i, nr_probe - n);
 
                if (k < 0)
                        break;
@@ -325,14 +325,14 @@ int __init early_platform_driver_probe(char *class_str,
 }
 
 /**
- * early_platform_cleanup - clean up early platform code
+ * sh_early_platform_cleanup - clean up early platform code
  */
-static int __init early_platform_cleanup(void)
+static int __init sh_early_platform_cleanup(void)
 {
        struct platform_device *pd, *pd2;
 
        /* clean up the devres list used to chain devices */
-       list_for_each_entry_safe(pd, pd2, &early_platform_device_list,
+       list_for_each_entry_safe(pd, pd2, &sh_early_platform_device_list,
                                 dev.devres_head) {
                list_del(&pd->dev.devres_head);
                memset(&pd->dev.devres_head, 0, sizeof(pd->dev.devres_head));
@@ -344,4 +344,4 @@ static int __init early_platform_cleanup(void)
  * This must happen once after all early devices are probed but before probing
  * real platform devices.
  */
-subsys_initcall(early_platform_cleanup);
+subsys_initcall(sh_early_platform_cleanup);
index 4590ab757d5fa8a28799c0f98fd6dc050daf58d1..fc802137c37d4378664477b1e3894aa6d70710cc 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/pm_runtime.h>
 #include <linux/slab.h>
 
-struct early_platform_driver {
+struct sh_early_platform_driver {
        const char *class_str;
        struct platform_driver *pdrv;
        struct list_head list;
@@ -20,39 +20,39 @@ struct early_platform_driver {
 #define EARLY_PLATFORM_ID_UNSET -2
 #define EARLY_PLATFORM_ID_ERROR -3
 
-extern int early_platform_driver_register(struct early_platform_driver *epdrv,
+extern int sh_early_platform_driver_register(struct sh_early_platform_driver *epdrv,
                                          char *buf);
-extern void early_platform_add_devices(struct platform_device **devs, int num);
+extern void sh_early_platform_add_devices(struct platform_device **devs, int num);
 
-static inline int is_early_platform_device(struct platform_device *pdev)
+static inline int is_sh_early_platform_device(struct platform_device *pdev)
 {
        return !pdev->dev.driver;
 }
 
-extern void early_platform_driver_register_all(char *class_str);
-extern int early_platform_driver_probe(char *class_str,
+extern void sh_early_platform_driver_register_all(char *class_str);
+extern int sh_early_platform_driver_probe(char *class_str,
                                       int nr_probe, int user_only);
 
-#define early_platform_init(class_string, platdrv)             \
-       early_platform_init_buffer(class_string, platdrv, NULL, 0)
+#define sh_early_platform_init(class_string, platdrv)          \
+       sh_early_platform_init_buffer(class_string, platdrv, NULL, 0)
 
 #ifndef MODULE
-#define early_platform_init_buffer(class_string, platdrv, buf, bufsiz) \
-static __initdata struct early_platform_driver early_driver = {                \
+#define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz)      \
+static __initdata struct sh_early_platform_driver early_driver = {             \
        .class_str = class_string,                                      \
        .buffer = buf,                                                  \
        .bufsize = bufsiz,                                              \
        .pdrv = platdrv,                                                \
        .requested_id = EARLY_PLATFORM_ID_UNSET,                        \
 };                                                                     \
-static int __init early_platform_driver_setup_func(char *buffer)       \
+static int __init sh_early_platform_driver_setup_func(char *buffer)    \
 {                                                                      \
-       return early_platform_driver_register(&early_driver, buffer);   \
+       return sh_early_platform_driver_register(&early_driver, buffer);        \
 }                                                                      \
-early_param(class_string, early_platform_driver_setup_func)
+early_param(class_string, sh_early_platform_driver_setup_func)
 #else /* MODULE */
-#define early_platform_init_buffer(class_string, platdrv, buf, bufsiz) \
-static inline char *early_platform_driver_setup_func(void)             \
+#define sh_early_platform_init_buffer(class_string, platdrv, buf, bufsiz)      \
+static inline char *sh_early_platform_driver_setup_func(void)          \
 {                                                                      \
        return bufsiz ? buf : NULL;                                     \
 }
index 27d459e8a59814536cd687f6e50a1184ba30b148..b1c877b6a4207fefe73b02516fd87d03d7664c5e 100644 (file)
@@ -200,6 +200,6 @@ void __init plat_early_device_setup(void)
        /* enable CMT clock */
        __raw_writeb(__raw_readb(STBCR3) & ~0x10, STBCR3);
 
-       early_platform_add_devices(sh7619_early_devices,
+       sh_early_platform_add_devices(sh7619_early_devices,
                                   ARRAY_SIZE(sh7619_early_devices));
 }
index 8a19c5754978e1e33207458d42e4ee7a6785a2b1..cefa07924c16dbedf2737c06b641b6af0a22b43e 100644 (file)
@@ -170,6 +170,6 @@ static struct platform_device *mxg_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(mxg_early_devices,
+       sh_early_platform_add_devices(mxg_early_devices,
                                   ARRAY_SIZE(mxg_early_devices));
 }
index d975e4d404bda25c5f3ad48f13d5a97ddb00d4d1..28f1bebf340565db791824a7f0ae4d748f6e8d06 100644 (file)
@@ -413,6 +413,6 @@ void __init plat_early_device_setup(void)
        /* enable MTU2 clock */
        __raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3);
 
-       early_platform_add_devices(sh7201_early_devices,
+       sh_early_platform_add_devices(sh7201_early_devices,
                                   ARRAY_SIZE(sh7201_early_devices));
 }
index 318b8cd8d5b711fbceadeb7265b76e7b82ba7b0d..4839f3aaeb4c21542dd1aa5beae7c0e444d7da6d 100644 (file)
@@ -350,6 +350,6 @@ void __init plat_early_device_setup(void)
        /* enable MTU2 clock */
        __raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3);
 
-       early_platform_add_devices(sh7203_early_devices,
+       sh_early_platform_add_devices(sh7203_early_devices,
                                   ARRAY_SIZE(sh7203_early_devices));
 }
index 8e6fae60074a3d8b60609e3b83ecdfcb8cdfb927..68add5af4cc56e3f5d1bfcebf14f660226fbe121 100644 (file)
@@ -286,6 +286,6 @@ void __init plat_early_device_setup(void)
        /* enable MTU2 clock */
        __raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3);
 
-       early_platform_add_devices(sh7206_early_devices,
+       sh_early_platform_add_devices(sh7206_early_devices,
                                   ARRAY_SIZE(sh7206_early_devices));
 }
index 2d95c9b38330cc97d0f1586869e9144945d2101c..8a1cb613dd2e0478517c07e164f9431cefd16cce 100644 (file)
@@ -547,6 +547,6 @@ static struct platform_device *sh7264_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7264_early_devices,
+       sh_early_platform_add_devices(sh7264_early_devices,
                                   ARRAY_SIZE(sh7264_early_devices));
 }
index ef4ff76cbe9e1e640292738e914c73c6f2d86cb9..8b1ef3028320c75b67aff32bc96ae9553b23c2ae 100644 (file)
@@ -563,6 +563,6 @@ static struct platform_device *sh7269_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7269_early_devices,
+       sh_early_platform_add_devices(sh7269_early_devices,
                                   ARRAY_SIZE(sh7269_early_devices));
 }
index 9b34d1f4e797aa4caa90e230006a75bf4c6c0b22..0544134b3f20c631514377700ef48bda2c7117b4 100644 (file)
@@ -179,7 +179,7 @@ static struct platform_device *sh7705_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7705_early_devices,
+       sh_early_platform_add_devices(sh7705_early_devices,
                                   ARRAY_SIZE(sh7705_early_devices));
 }
 
index 39f09504bd968edadc7a47e6cc920f7f4c5a717a..4947f57748bc123208183eb778e9366cbaf70c60 100644 (file)
@@ -231,7 +231,7 @@ static struct platform_device *sh770x_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh770x_early_devices,
+       sh_early_platform_add_devices(sh770x_early_devices,
                                   ARRAY_SIZE(sh770x_early_devices));
 }
 
index c006c8fcfa0feb5ff574851ab321157d6b077111..3819107615794b085031d7e4bf93218c3a400fc2 100644 (file)
@@ -178,7 +178,7 @@ static struct platform_device *sh7710_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7710_early_devices,
+       sh_early_platform_add_devices(sh7710_early_devices,
                                   ARRAY_SIZE(sh7710_early_devices));
 }
 
index cf2eec9f6abd97cbe1305d10490a4c6ffdb43851..425d067dae9bafc327367c9bf20c8c308ec1e067 100644 (file)
@@ -212,7 +212,7 @@ static struct platform_device *sh7720_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7720_early_devices,
+       sh_early_platform_add_devices(sh7720_early_devices,
                                   ARRAY_SIZE(sh7720_early_devices));
 }
 
index 2480ce4a3b1e9afefd2491d65d7692c18191d308..e6737f3d0df25267e1c8daa3e63af39c85831ac0 100644 (file)
@@ -77,7 +77,7 @@ static struct platform_device *sh4202_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh4202_early_devices,
+       sh_early_platform_add_devices(sh4202_early_devices,
                                   ARRAY_SIZE(sh4202_early_devices));
 }
 
index 4592d660b942637cf10d365192209c90001d5585..19c8f1d69071c37ed036939c1b2c36a62631d496 100644 (file)
@@ -162,15 +162,15 @@ void __init plat_early_device_setup(void)
        if (mach_is_rts7751r2d()) {
                scif_platform_data.scscr |= SCSCR_CKE1;
                dev[0] = &scif_device;
-               early_platform_add_devices(dev, 1);
+               sh_early_platform_add_devices(dev, 1);
        } else {
                dev[0] = &sci_device;
-               early_platform_add_devices(dev, 1);
+               sh_early_platform_add_devices(dev, 1);
                dev[0] = &scif_device;
-               early_platform_add_devices(dev, 1);
+               sh_early_platform_add_devices(dev, 1);
        }
 
-       early_platform_add_devices(sh7750_early_devices,
+       sh_early_platform_add_devices(sh7750_early_devices,
                                   ARRAY_SIZE(sh7750_early_devices));
 }
 
index e64eb96e358925b0e3593ae9c746679312a76163..14212f5d803cd44a56a73f4af060bb9610a28c0d 100644 (file)
@@ -272,7 +272,7 @@ static struct platform_device *sh7760_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7760_early_devices,
+       sh_early_platform_add_devices(sh7760_early_devices,
                                   ARRAY_SIZE(sh7760_early_devices));
 }
 
index 0fa56128bdca0aad600a60f05e79f4db0e1402a3..b6015188fab1f1b58a11101c8b73c8567c11f5db 100644 (file)
@@ -297,7 +297,7 @@ static struct platform_device *sh7343_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7343_early_devices,
+       sh_early_platform_add_devices(sh7343_early_devices,
                                   ARRAY_SIZE(sh7343_early_devices));
 }
 
index 9f2f75285ec357a8a9aa54aedbe18414db16cedb..6676beef053e59e29db75eb58c23c1cb4fb1d133 100644 (file)
@@ -241,7 +241,7 @@ static struct platform_device *sh7366_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7366_early_devices,
+       sh_early_platform_add_devices(sh7366_early_devices,
                                   ARRAY_SIZE(sh7366_early_devices));
 }
 
index 8e5eaac789a73876c881e7e405256094be4100c4..0c6757ef63f42c4db50276c23ab551f61a7677ab 100644 (file)
@@ -513,7 +513,7 @@ static struct platform_device *sh7722_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7722_early_devices,
+       sh_early_platform_add_devices(sh7722_early_devices,
                                   ARRAY_SIZE(sh7722_early_devices));
 }
 
index b4b54aa0c26772644bb1297e821339101c6a6202..83ae1ad4a86e86b710cf5872d9fd68693f41557c 100644 (file)
@@ -411,7 +411,7 @@ static struct platform_device *sh7723_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7723_early_devices,
+       sh_early_platform_add_devices(sh7723_early_devices,
                                   ARRAY_SIZE(sh7723_early_devices));
 }
 
index ec237ab112cf7d25b54a9e12ed0984da6468979e..0d990ab1ba2a9ed743e0fa9fa1d627352e141312 100644 (file)
@@ -831,7 +831,7 @@ static struct platform_device *sh7724_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7724_early_devices,
+       sh_early_platform_add_devices(sh7724_early_devices,
                                   ARRAY_SIZE(sh7724_early_devices));
 }
 
index 7ea9a8b4395591cb99efe9654927017d81b94e79..9911da794358d0b5b000c59439979e01ad9df638 100644 (file)
@@ -281,7 +281,7 @@ static struct platform_device *sh7734_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7734_early_devices,
+       sh_early_platform_add_devices(sh7734_early_devices,
                ARRAY_SIZE(sh7734_early_devices));
 }
 
index 922d9886be181c32087224879f68d322ec25a96d..67e330b7ea4621e98ea5d7c11cea9fc260d82530 100644 (file)
@@ -768,7 +768,7 @@ static struct platform_device *sh7757_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7757_early_devices,
+       sh_early_platform_add_devices(sh7757_early_devices,
                                   ARRAY_SIZE(sh7757_early_devices));
 }
 
index 8725d4751bafe5e11859fb3feb7c849918db5738..b0608664785f5016e8990e7b614e287eb42bf123 100644 (file)
@@ -222,7 +222,7 @@ static struct platform_device *sh7763_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7763_early_devices,
+       sh_early_platform_add_devices(sh7763_early_devices,
                                   ARRAY_SIZE(sh7763_early_devices));
 }
 
index 035a0d4f2a2eca010465c40bbeea55ca3f4bfa31..5efec6ceb04d5cc9e4f28dcd2f977b9b1f5181d8 100644 (file)
@@ -317,7 +317,7 @@ static struct platform_device *sh7770_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7770_early_devices,
+       sh_early_platform_add_devices(sh7770_early_devices,
                                   ARRAY_SIZE(sh7770_early_devices));
 }
 
index 983be87cb7be4b0af54fa34743aeeaa870539d1f..c818b788ecb05a54f454a8ef6db86dd0ca50d48d 100644 (file)
@@ -286,7 +286,7 @@ void __init plat_early_device_setup(void)
                scif1_platform_data.scscr &= ~SCSCR_CKE1;
        }
 
-       early_platform_add_devices(sh7780_early_devices,
+       sh_early_platform_add_devices(sh7780_early_devices,
                                   ARRAY_SIZE(sh7780_early_devices));
 }
 
index bb0cb710c16e05672201b99a10f1a6f538a7a242..3b4a414d60a91c733eeaced87349cade611687d4 100644 (file)
@@ -354,7 +354,7 @@ static struct platform_device *sh7785_early_devices[] __initdata = {
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7785_early_devices,
+       sh_early_platform_add_devices(sh7785_early_devices,
                                   ARRAY_SIZE(sh7785_early_devices));
 }
 
index b5d94366eed3271471ba60714cd955cd0f08246f..4b0db8259e3d708205c6bdd2fde413a4c3a04608 100644 (file)
@@ -835,6 +835,6 @@ arch_initcall(sh7786_devices_setup);
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh7786_early_devices,
+       sh_early_platform_add_devices(sh7786_early_devices,
                                   ARRAY_SIZE(sh7786_early_devices));
 }
index e82398d80b74e1e1f3fca21eca25ed7b09c68db4..7014d6d199b3e64a67f6444c81bf75a9d2db921d 100644 (file)
@@ -153,7 +153,7 @@ arch_initcall(shx3_devices_setup);
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(shx3_early_devices,
+       sh_early_platform_add_devices(shx3_early_devices,
                                   ARRAY_SIZE(shx3_early_devices));
 }
 
index 584a6aeeca2613f5851557b693af7b09abfa8cce..dc8476d67244069e8b6088b4bdf95a41ff96a2c8 100644 (file)
@@ -116,6 +116,6 @@ arch_initcall(sh5_devices_setup);
 
 void __init plat_early_device_setup(void)
 {
-       early_platform_add_devices(sh5_early_devices,
+       sh_early_platform_add_devices(sh5_early_devices,
                                   ARRAY_SIZE(sh5_early_devices));
 }
index e535507851e1be456f37c816f031f82b0dab5923..914174a125a43fc4b801910177b12efdbf6a92e5 100644 (file)
@@ -329,7 +329,7 @@ void __init setup_arch(char **cmdline_p)
        sh_mv_setup();
 
        /* Let earlyprintk output early console messages */
-       early_platform_driver_probe("earlyprintk", 1, 1);
+       sh_early_platform_driver_probe("earlyprintk", 1, 1);
 
 #ifdef CONFIG_OF_FLATTREE
 #ifdef CONFIG_USE_BUILTIN_DTB
index 8ad9fd5c4ff60fde4e0d1329a9e64602a6955861..821a09cbd6054f6d089d6f3062531b7325a7135d 100644 (file)
@@ -31,8 +31,8 @@ static void __init sh_late_time_init(void)
         * clocksource and the jiffies clocksource is used transparently
         * instead. No error handling is necessary here.
         */
-       early_platform_driver_register_all("earlytimer");
-       early_platform_driver_probe("earlytimer", 2, 0);
+       sh_early_platform_driver_register_all("earlytimer");
+       sh_early_platform_driver_probe("earlytimer", 2, 0);
 }
 
 void __init time_init(void)
index 3a185485300e4386d679a183a057f2a02d1b486a..9cde50cb322008a02a1d38c56f68a9a07f923fac 100644 (file)
@@ -1056,7 +1056,7 @@ static int sh_cmt_probe(struct platform_device *pdev)
        struct sh_cmt_device *cmt = platform_get_drvdata(pdev);
        int ret;
 
-       if (!is_early_platform_device(pdev)) {
+       if (!is_sh_early_platform_device(pdev)) {
                pm_runtime_set_active(&pdev->dev);
                pm_runtime_enable(&pdev->dev);
        }
@@ -1076,7 +1076,7 @@ static int sh_cmt_probe(struct platform_device *pdev)
                pm_runtime_idle(&pdev->dev);
                return ret;
        }
-       if (is_early_platform_device(pdev))
+       if (is_sh_early_platform_device(pdev))
                return 0;
 
  out:
@@ -1114,7 +1114,7 @@ static void __exit sh_cmt_exit(void)
 }
 
 #ifdef CONFIG_SUPERH
-early_platform_init("earlytimer", &sh_cmt_device_driver);
+sh_early_platform_init("earlytimer", &sh_cmt_device_driver);
 #endif
 
 subsys_initcall(sh_cmt_init);
index d581060d33a26aaf4d1e9c34a9f18516b2477b60..c40eef091a04dab282914ec79b0209c458842cde 100644 (file)
@@ -446,7 +446,7 @@ static int sh_mtu2_probe(struct platform_device *pdev)
        struct sh_mtu2_device *mtu = platform_get_drvdata(pdev);
        int ret;
 
-       if (!is_early_platform_device(pdev)) {
+       if (!is_sh_early_platform_device(pdev)) {
                pm_runtime_set_active(&pdev->dev);
                pm_runtime_enable(&pdev->dev);
        }
@@ -466,7 +466,7 @@ static int sh_mtu2_probe(struct platform_device *pdev)
                pm_runtime_idle(&pdev->dev);
                return ret;
        }
-       if (is_early_platform_device(pdev))
+       if (is_sh_early_platform_device(pdev))
                return 0;
 
  out:
@@ -516,7 +516,7 @@ static void __exit sh_mtu2_exit(void)
 }
 
 #ifdef CONFIG_SUPERH
-early_platform_init("earlytimer", &sh_mtu2_device_driver);
+sh_early_platform_init("earlytimer", &sh_mtu2_device_driver);
 #endif
 
 subsys_initcall(sh_mtu2_init);
index 50e30ead050e3c31de95286c3ba84aa9afaae398..d49690d1553670e65bede80e78e2e07e648b5ecd 100644 (file)
@@ -599,7 +599,7 @@ static int sh_tmu_probe(struct platform_device *pdev)
        struct sh_tmu_device *tmu = platform_get_drvdata(pdev);
        int ret;
 
-       if (!is_early_platform_device(pdev)) {
+       if (!is_sh_early_platform_device(pdev)) {
                pm_runtime_set_active(&pdev->dev);
                pm_runtime_enable(&pdev->dev);
        }
@@ -620,7 +620,7 @@ static int sh_tmu_probe(struct platform_device *pdev)
                return ret;
        }
 
-       if (is_early_platform_device(pdev))
+       if (is_sh_early_platform_device(pdev))
                return 0;
 
  out:
@@ -671,7 +671,7 @@ static void __exit sh_tmu_exit(void)
 }
 
 #ifdef CONFIG_SUPERH
-early_platform_init("earlytimer", &sh_tmu_device_driver);
+sh_early_platform_init("earlytimer", &sh_tmu_device_driver);
 #endif
 
 subsys_initcall(sh_tmu_init);
index 2a645fd7f07b4910e597617473613c57839dfdcf..970f1f86b945e0dce219b5849bd8ac319bca0a0d 100644 (file)
@@ -3318,7 +3318,7 @@ static int sci_probe(struct platform_device *dev)
         * to make it beyond this yet.
         */
 #ifdef CONFIG_SUPERH
-       if (is_early_platform_device(dev))
+       if (is_sh_early_platform_device(dev))
                return sci_probe_earlyprintk(dev);
 #endif
 
@@ -3416,7 +3416,7 @@ static void __exit sci_exit(void)
 }
 
 #if defined(CONFIG_SUPERH) && defined(CONFIG_SERIAL_SH_SCI_CONSOLE)
-early_platform_init_buffer("earlyprintk", &sci_driver,
+sh_early_platform_init_buffer("earlyprintk", &sci_driver,
                           early_serial_buf, ARRAY_SIZE(early_serial_buf));
 #endif
 #ifdef CONFIG_SERIAL_SH_SCI_EARLYCON
index 85aa28a041a9cfeaec504983d6738560695e0dda..f086b6a1bc6b4daab27419c73f5a4ffa2fededee 100644 (file)
@@ -332,7 +332,7 @@ extern int platform_dma_configure(struct device *dev);
  * drivers. It should go away once we introduce the new platform_device-based
  * early driver framework.
  */
-static inline int is_early_platform_device(struct platform_device *pdev)
+static inline int is_sh_early_platform_device(struct platform_device *pdev)
 {
        return 0;
 }