From: Axel Lin Date: Thu, 12 May 2011 05:47:50 +0000 (+0800) Subject: regulator: Fix desc_id for tps65023/6507x/65910 X-Git-Tag: v3.0-rc1~48^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77fa44d0e10711e899788c58fe53f8f7b18c7f67;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