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. 03 Mar, 2016 2 commits
  3. 10 Feb, 2016 7 commits
  4. 01 Dec, 2015 1 commit
  5. 30 Nov, 2015 1 commit
  6. 20 Nov, 2015 3 commits
  7. 13 Nov, 2015 13 commits
  8. 25 Aug, 2015 1 commit
  9. 07 May, 2015 2 commits
  10. 27 Apr, 2015 1 commit
  11. 20 Apr, 2015 3 commits
  12. 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
  13. 20 Jan, 2015 1 commit
  14. 18 Sep, 2014 1 commit
  15. 13 Aug, 2014 2 commits