1. 17 Jul, 2016 1 commit
    • Dimitris Lampridis's avatar
      kernel: fix kernel >4.4 compatibility · 4fb9a54c
      Dimitris Lampridis authored
      Compiling on kernel >=4.5 produces the following error:
      
        CC [M]  spec-sw/kernel/wr-nic-gpio.o
      spec-sw/kernel/wr-nic-gpio.c: In function ‘gc_to_fmc’:
      spec-sw/kernel/wr-nic-gpio.c:20:25: error: ‘struct gpio_chip’ has no member named ‘dev’
        struct device *dev = gc->dev;
                               ^
      spec-sw/kernel/wr-nic-gpio.c: In function ‘wrn_gpio_init’:
      spec-sw/kernel/wr-nic-gpio.c:75:4: error: ‘struct gpio_chip’ has no member named ‘dev’
        gc->dev = &fmc->dev;
          ^
      
      This is due to a change in struct gpio_chip introduced in 4.5,
      where the "dev" field was renamed to "parent".
      
      58383c7 gpio: change member .dev to .parent
      
      This patch makes our code compatible with modern kernel versions
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      Signed-off-by: 's avatarDimitris Lampridis <Dimitris.Lampridis@cern.ch>
      4fb9a54c
  2. 24 Feb, 2015 1 commit
    • Federico Vaga's avatar
      wr-nic-gpio: do not check on gpiochip_remove · 2b85fda2
      Federico Vaga authored
      Since kernel 3.18 the gpiochip_remove function return void and not an
      error code as before. In case the gpiochip is removed while there is a
      requested gpio, the kernel will print an error message.
      
      By applying this patch without any control on the kernel version we are
      going to loose the error message in case of trouble with old kernels
      Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
      2b85fda2
  3. 16 Sep, 2012 1 commit
  4. 12 Sep, 2012 1 commit
  5. 08 Aug, 2012 3 commits