pinctrl: rockchip: make driver be tristate module
Subsystems (3)
PATCH 1/1 pinctrl: rockchip: make driver be tristate module
Make pinctrl-rockchip driver to be tristate module, support to build as a module, this is useful for GKI.
--- drivers/pinctrl/Kconfig | 2 +- drivers/pinctrl/pinctrl-rockchip.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-)
drivers/pinctrl/Kconfig +1 -1
@@ -208,7 +208,7 @@ config PINCTRL_OXNAS select MFD_SYSCON config PINCTRL_ROCKCHIP - bool + tristate "Rockchip gpio and pinctrl driver" depends on OF select PINMUX select GENERIC_PINCONF
drivers/pinctrl/pinctrl-rockchip.c +13 -0
@@ -16,10 +16,12 @@*/ #include <linux/init.h> +#include <linux/module.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/bitops.h> #include <linux/gpio/driver.h> +#include <linux/of_device.h> #include <linux/of_address.h> #include <linux/of_irq.h> #include <linux/pinctrl/machine.h>
@@ -4256,3 +4258,14 @@ static int __init rockchip_pinctrl_drv_register(void)return platform_driver_register (&rockchip_pinctrl_driver); }postcore_initcall (rockchip_pinctrl_drv_register); + +static void __exit rockchip_pinctrl_drv_unregister(void) +{ +platform_driver_unregister (&rockchip_pinctrl_driver); +} +module_exit (rockchip_pinctrl_drv_unregister); + +MODULE_DESCRIPTION ("ROCKCHIP Pin Controller Driver" ); +MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:pinctrl-rockchip" ); +MODULE_DEVICE_TABLE (of, rockchip_pinctrl_dt_match);
Signature · 9 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
kernel test robot
build botThank you for the patch! Yet something to improve:
Hi Jianqun,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on pinctrl/devel]
[also build test ERROR on rockchip/for-next v5.11 next-20210223] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jianqun-Xu/pinctrl-rockchip-make-driver-be-tristate-module/20210223-144922 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel config: sh-allmodconfig (attached as .config) compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/01c994fd346e87ae5b00645b187c1894dd992bed
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jianqun-Xu/pinctrl-rockchip-make-driver-be-tristate-module/20210223-144922 git checkout 01c994fd346e87ae5b00645b187c1894dd992bed
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>, old ones prefixed by <<):
ERROR: modpost: "__delay" [drivers/net/mdio/mdio-cavium.ko] undefined!
>> ERROR: modpost: "irq_gc_set_wake" [drivers/pinctrl/pinctrl-rockchip.ko] undefined!
ERROR: modpost: "__udivdi3" [fs/btrfs/btrfs.ko] undefined!
ERROR: modpost: "__umoddi3" [fs/btrfs/btrfs.ko] undefined!
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
Quoted 5 lines · Jianqun Xu
Make pinctrl-rockchip driver to be tristate module, support to build as a module, this is useful for GKI.
Reviewed-by Heiko Stuebner <[email protected]>Signed-off-by Jianqun Xu <[email protected]>
Patch applied.
Yours,
Linus Walleij
Quoted 9 lines · Linus Walleij
Quoted 5 lines · Jianqun Xu
Make pinctrl-rockchip driver to be tristate module, support to build as a module, this is useful for GKI.
Reviewed-by Heiko Stuebner <[email protected]>Signed-off-by Jianqun Xu <[email protected]>Patch applied.
Dropped this patch again since it breaks x86_64 allmodconfig.
Yours,
Linus Walleij
A message that is not in the archive (sent off-list or not yet received): CAKUh=RxWDyW_cO2nKFLi=x0xDJwLHTb3+-OesTk2B5C=DpGEwg@mail.gmail.com
Re: [PATCH] pinctrl: rockchip: make driver be tristate module【请注意,邮件由linux-rockchip-bounces+kever.yang=rock-chips.com@lists.infradead.org代发】
Quoted 4 lines · Kever Yang
Hi Linus,
Is there a place we can see the error report for "x86_64allmodconfig"?
Since we don't have a build environment for architectures other than arm, it would be best if we can get the error without have to setup the build environment.
It comes out from the kernel build robot when I apply the patch, hehe :D
But I think the kernel build robot people at Arm can pick any git branch for builds, on request.
Yours,
Linus Walleij