sh: add the sh_ prefix to early platform symbols
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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
507fd01d53
commit
201e91091b
@@ -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);
|
||||
|
Reference in New Issue
Block a user