From: Marek Vasut Date: Tue, 30 Jun 2015 18:04:18 +0000 (+0200) Subject: gpio: max732x: Add missing dev reference to gpiochip X-Git-Tag: omap-for-v4.3/fixes-merge-window~232^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34ab54edbef902f31842b428dce9530f3283847c;p=pandora-kernel.git gpio: max732x: Add missing dev reference to gpiochip In case the gpiochip doesn't have the .dev field set, as is the case in here, it is not possible to reference this device in DT as a GPIO controller. A good example of this problem is that gpio-leds can not be used when connected to this chip, the gpio-leds driver bails out with -EPROBE_DEFER. Fix this problem by setting the .dev field of the gpio_chip to the parent i2c device. Signed-off-by: Marek Vasut Cc: Alexandre Courbot Cc: Linus Walleij Cc: Mans Rullgard Cc: Olaf Mandel Cc: Semen Protsenko Signed-off-by: Linus Walleij --- Reading git-diff-tree failed