[linux-next:master 8424/13260] drivers/media/i2c/max9286.c:1033:6: 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/next/linux-next.git master
head:   01830e6c042e8eb6eb202e05d7df8057135b4c26
commit: 66d8c9d2422da21ed41f75c03ba0685987b65fe0 [8424/13260] media: i2c: Add MAX9286 driver
config: c6x-randconfig-s032-20200802 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-115-g5fc204f2-dirty
        git checkout 66d8c9d2422da21ed41f75c03ba0685987b65fe0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=c6x 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/media/i2c/max9286.c: In function 'max9286_register_gpio':
>> drivers/media/i2c/max9286.c:1033:6: error: 'struct gpio_chip' has no member named 'of_node'
    1033 |  gpio->of_node = dev->of_node;
         |      ^~

vim +1033 drivers/media/i2c/max9286.c

  1022	
  1023	static int max9286_register_gpio(struct max9286_priv *priv)
  1024	{
  1025		struct device *dev = &priv->client->dev;
  1026		struct gpio_chip *gpio = &priv->gpio;
  1027		int ret;
  1028	
  1029		/* Configure the GPIO */
  1030		gpio->label = dev_name(dev);
  1031		gpio->parent = dev;
  1032		gpio->owner = THIS_MODULE;
> 1033		gpio->of_node = dev->of_node;
  1034		gpio->ngpio = 2;
  1035		gpio->base = -1;
  1036		gpio->set = max9286_gpio_set;
  1037		gpio->get = max9286_gpio_get;
  1038		gpio->can_sleep = true;
  1039	
  1040		/* GPIO values default to high */
  1041		priv->gpio_state = BIT(0) | BIT(1);
  1042	
  1043		ret = devm_gpiochip_add_data(dev, gpio, priv);
  1044		if (ret)
  1045			dev_err(dev, "Unable to create gpio_chip\n");
  1046	
  1047		return ret;
  1048	}
  1049	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux