commit | 5ed41cc4baaf4127661d2a8f8f2ee6e3085e0fa9 | [log] [tgz] |
---|---|---|
author | Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> | Mon Nov 16 13:02:47 2015 +0800 |
committer | Linus Walleij <linus.walleij@linaro.org> | Thu Nov 19 09:24:40 2015 +0100 |
tree | cde0d7d31e4deab80a6def316ba661ef3873a0f2 | |
parent | ef7c7553039b3d1c847b38b0f1ea208f8d5d8370 [diff] |
gpiolib: do not allow to insert an empty gpiochip We need to check if number of gpio is positive if there is no such check in devicetree or acpi or whatever called before gpiochip_add. I suppose that devicetree and acpi do not allow insert gpiochip with zero number but I do not know if it is enough to ignore this check in gpiochip_add. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>