From: Axel Lin Date: Thu, 12 May 2011 05:47:50 +0000 (+0800) Subject: regulator: Fix desc_id for tps65023/6507x/65910 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=081ddbd64a623d62f7433988cfc46acc9f956ae7;p=pandora-kernel.git regulator: Fix desc_id for tps65023/6507x/65910 The desc_id variable should not be a static variable. The rest of the code assumes the desc_id must less than TPSxxxxx_NUM_REGULATOR. If we set desc_id to be a static variable, checking the return value of rdev_get_id() may return error. Signed-off-by: Axel Lin Cc: Anuj Aggarwal Cc: Graeme Gregory Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed