Messages in this thread |  | | | From | Axel Lin <> | | Date | Tue, 21 Aug 2012 11:36:42 +0800 | | Subject | Re: [PATCH] regulator: max8907: Properly set pmic pointer in max8907_regulator_remove() |
| |
2012/8/20 Stephen Warren <swarren@wwwdotorg.org>: > On 08/18/2012 12:33 AM, Axel Lin wrote: >> Add missing platform_get_drvdata() call in max8907_regulator_remove(), this >> fixes below build warning: >> >> CC [M] drivers/regulator/max8907-regulator.o >> drivers/regulator/max8907-regulator.c: In function 'max8907_regulator_remove': >> drivers/regulator/max8907-regulator.c:353:23: warning: 'pmic' is used uninitialized in this function [-Wuninitialized] > > That's odd; while this warning and the patch are obviously correct, I > can't get my compiler to warn about it at all, and it usually is pretty > strict about emitting warnings. Oh well.
I got this error message only when I compile it as a module. :-)
Axel
|  |