Thread (16 messages) 16 messages, 5 authors, 2015-06-09

Re: [PATCH 3/5] soc: Mediatek: Add SCPSYS power domain driver

From: Paul Bolle <hidden>
Date: 2015-05-21 08:22:34
Also in: linux-arm-kernel, linux-mediatek, lkml

On Wed, 2015-05-20 at 16:18 +0200, Sascha Hauer wrote:
quoted hunk ↗ jump to hunk
--- a/drivers/soc/mediatek/Kconfig
+++ b/drivers/soc/mediatek/Kconfig
+config MTK_SCPSYS
+	bool "MediaTek SCPSYS Support"
+	depends on ARCH_MEDIATEK || COMPILE_TEST
+	select REGMAP
+	select MTK_INFRACFG
+	help
+	  Say yes here to add support for the MediaTek SCPSYS power domain
+	  driver.
+obj-$(CONFIG_MTK_SCPSYS) += mtk-scpsys.o
quoted hunk ↗ jump to hunk
--- /dev/null
+++ b/drivers/soc/mediatek/mtk-scpsys.c
+#include <linux/module.h>
+MODULE_DEVICE_TABLE(of, of_scpsys_match_tbl);
+
+static struct platform_driver scpsys_drv = {
+		.owner = THIS_MODULE,
+};
+
+module_platform_driver_probe(scpsys_drv, scpsys_probe);
(A patch was recently submitted that would allow built-in only code to
use builtin_platform_driver_probe(), see
https://lkml.org/lkml/2015/5/10/125 .)
+MODULE_AUTHOR("Sascha Hauer, Pengutronix");
+MODULE_DESCRIPTION("MediaTek MT8173 scpsys driver");
+MODULE_LICENSE("GPL v2");
MTK_SCPSYS was changed from tristate to bool in this version. As
mtk-scpsys.o can now only be built-in I think the above module specific
macros can safely be dropped. Probably ditto for the module.h include.

Thanks,


Paul Bolle

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help