[gpio:for-next 3/4] drivers/gpio/gpio-grgpio.c:367:4: error: 'struct gpio_chip' has no member named 'of_node'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next
head:   3fec91194bf19c4f29d5cc4b608f6a3de71b9f89
commit: 75bd9ca6125f53052573fc7d2d49f11c53776cec [3/4] gpio: Fix OF build problem on UM
config: um-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        git checkout 75bd9ca6125f53052573fc7d2d49f11c53776cec
        # save the attached .config to linux build tree
        make ARCH=um 

All errors (new ones prefixed by >>):

   drivers/gpio/gpio-grgpio.c: In function 'grgpio_probe':
>> drivers/gpio/gpio-grgpio.c:367:4: error: 'struct gpio_chip' has no member named 'of_node'
     gc->of_node = np;
       ^~
--
   drivers/gpio/gpio-mcp23s08.c: In function 'mcp23s08_probe_one':
>> drivers/gpio/gpio-mcp23s08.c:568:11: error: 'struct gpio_chip' has no member named 'of_gpio_n_cells'
     mcp->chip.of_gpio_n_cells = 2;
              ^
>> drivers/gpio/gpio-mcp23s08.c:569:11: error: 'struct gpio_chip' has no member named 'of_node'
     mcp->chip.of_node = dev->of_node;
              ^

vim +367 drivers/gpio/gpio-grgpio.c

ddb27f3b Andreas Larsson 2013-04-17  351  	if (IS_ERR(regs))
ddb27f3b Andreas Larsson 2013-04-17  352  		return PTR_ERR(regs);
ddb27f3b Andreas Larsson 2013-04-17  353  
0f4630f3 Linus Walleij   2015-12-04  354  	gc = &priv->gc;
0f4630f3 Linus Walleij   2015-12-04  355  	err = bgpio_init(gc, &ofdev->dev, 4, regs + GRGPIO_DATA,
ddb27f3b Andreas Larsson 2013-04-17  356  			 regs + GRGPIO_OUTPUT, NULL, regs + GRGPIO_DIR, NULL,
ddb27f3b Andreas Larsson 2013-04-17  357  			 BGPIOF_BIG_ENDIAN_BYTE_ORDER);
ddb27f3b Andreas Larsson 2013-04-17  358  	if (err) {
ddb27f3b Andreas Larsson 2013-04-17  359  		dev_err(&ofdev->dev, "bgpio_init() failed\n");
ddb27f3b Andreas Larsson 2013-04-17  360  		return err;
ddb27f3b Andreas Larsson 2013-04-17  361  	}
ddb27f3b Andreas Larsson 2013-04-17  362  
ddb27f3b Andreas Larsson 2013-04-17  363  	priv->regs = regs;
0f4630f3 Linus Walleij   2015-12-04  364  	priv->imask = gc->read_reg(regs + GRGPIO_IMASK);
ddb27f3b Andreas Larsson 2013-04-17  365  	priv->dev = &ofdev->dev;
ddb27f3b Andreas Larsson 2013-04-17  366  
ddb27f3b Andreas Larsson 2013-04-17 @367  	gc->of_node = np;
ddb27f3b Andreas Larsson 2013-04-17  368  	gc->owner = THIS_MODULE;
08ffb222 Andreas Larsson 2013-04-17  369  	gc->to_irq = grgpio_to_irq;
ddb27f3b Andreas Larsson 2013-04-17  370  	gc->label = np->full_name;
ddb27f3b Andreas Larsson 2013-04-17  371  	gc->base = -1;
ddb27f3b Andreas Larsson 2013-04-17  372  
ddb27f3b Andreas Larsson 2013-04-17  373  	err = of_property_read_u32(np, "nbits", &prop);
ddb27f3b Andreas Larsson 2013-04-17  374  	if (err || prop <= 0 || prop > GRGPIO_MAX_NGPIO) {
ddb27f3b Andreas Larsson 2013-04-17  375  		gc->ngpio = GRGPIO_MAX_NGPIO;

:::::: The code at line 367 was first introduced by commit
:::::: ddb27f3bf771b53e0e7aa93d0186ea5c03381e23 gpio: grgpio: Add device driver for GRGPIO cores

:::::: TO: Andreas Larsson <andreas@xxxxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux