From: Marek Szyprowski Date: Thu, 9 Aug 2012 14:33:00 +0000 (+0200) Subject: regulator: core: request only valid gpio pins for regulator enable X-Git-Tag: v3.6-rc3~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2a1ef473b031b630a26685c91a46b9ae668d35c;p=pandora-kernel.git regulator: core: request only valid gpio pins for regulator enable Commit 65f735082de3 ("regulator: core: Add core support for GPIO controlled enable lines") introduced enable gpio entry in regulator configuration structure. Some drivers use '-1' as a placeholder for marking that such gpio line is not available, because '0' is considered as a valid gpio number. This patch fixes initialization of such drivers (like MAX8952 on UniversalC210 board), when '-1' is provided as enable gpio pin in the regulator's platform data. Signed-off-by: Marek Szyprowski Signed-off-by: Mark Brown --- Reading git-diff-tree failed