Message ID | 1501496103-21713-1-git-send-email-andy.yan@rock-chips.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Andy,
[auto build test ERROR on rockchip/for-next]
[also build test ERROR on v4.13-rc3 next-20170731]
[cannot apply to robh/for-next]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Andy-Yan/Support-more-devices-on-rockchip-rv1108/20170731-200355
base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All errors (new ones prefixed by >>):
>> drivers/spi/spi-rockchip.c:923:2: error: expected '}' before '{' token
{ .compatible = "rockchip,rk3036-spi", },
^
vim +923 drivers/spi/spi-rockchip.c
64e36824 addy ke 2014-07-01 920
64e36824 addy ke 2014-07-01 921 static const struct of_device_id rockchip_spi_dt_match[] = {
b8251f6e Andy Yan 2017-07-31 922 { .compatible = "rockchip,rv1108-spi", }
aa29ea3d Caesar Wang 2016-05-20 @923 { .compatible = "rockchip,rk3036-spi", },
64e36824 addy ke 2014-07-01 924 { .compatible = "rockchip,rk3066-spi", },
b839b785 Addy Ke 2014-07-11 925 { .compatible = "rockchip,rk3188-spi", },
aa29ea3d Caesar Wang 2016-05-20 926 { .compatible = "rockchip,rk3228-spi", },
b839b785 Addy Ke 2014-07-11 927 { .compatible = "rockchip,rk3288-spi", },
aa29ea3d Caesar Wang 2016-05-20 928 { .compatible = "rockchip,rk3368-spi", },
9b7a5622 Xu Jianqun 2016-02-18 929 { .compatible = "rockchip,rk3399-spi", },
64e36824 addy ke 2014-07-01 930 { },
64e36824 addy ke 2014-07-01 931 };
64e36824 addy ke 2014-07-01 932 MODULE_DEVICE_TABLE(of, rockchip_spi_dt_match);
64e36824 addy ke 2014-07-01 933
:::::: The code at line 923 was first introduced by commit
:::::: aa29ea3df27dbba19ef59023d0f7330f2fdc58ae spi/rockchip: add the rk3036/rk3228/rk3368 to match for driver
:::::: TO: Caesar Wang <wxt@rock-chips.com>
:::::: CC: Mark Brown <broonie@kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
diff --git a/Documentation/devicetree/bindings/spi/spi-rockchip.txt b/Documentation/devicetree/bindings/spi/spi-rockchip.txt index 83da493..6e3ffac 100644 --- a/Documentation/devicetree/bindings/spi/spi-rockchip.txt +++ b/Documentation/devicetree/bindings/spi/spi-rockchip.txt @@ -6,6 +6,7 @@ and display controllers using the SPI communication interface. Required Properties: - compatible: should be one of the following. + "rockchip,rv1108-spi" for rv1108 SoCs. "rockchip,rk3036-spi" for rk3036 SoCS. "rockchip,rk3066-spi" for rk3066 SoCs. "rockchip,rk3188-spi" for rk3188 SoCs. diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 0b4a52b..6235b14 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -919,6 +919,7 @@ static const struct dev_pm_ops rockchip_spi_pm = { }; static const struct of_device_id rockchip_spi_dt_match[] = { + { .compatible = "rockchip,rv1108-spi", } { .compatible = "rockchip,rk3036-spi", }, { .compatible = "rockchip,rk3066-spi", }, { .compatible = "rockchip,rk3188-spi", },
The spi on rv1108 is the same as other rockchip based socs, add compatible string for it. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> --- Documentation/devicetree/bindings/spi/spi-rockchip.txt | 1 + drivers/spi/spi-rockchip.c | 1 + 2 files changed, 2 insertions(+)