From: Heiko Stübner Date: Wed, 17 Sep 2014 11:21:48 +0000 (+0200) Subject: regulator: fan53555: fix wrong cast in probe X-Git-Tag: fixes-for-v3.18-merge-window~31^2~3^4~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f34163c5474326dd70239045f1957fe369460dd;p=pandora-kernel.git regulator: fan53555: fix wrong cast in probe The vendor-id gathered from the dt match-data was cast to int but assigned to an unsigned long, producing warnings on at least sparc, like drivers/regulator/fan53555.c: In function 'fan53555_regulator_probe': >> drivers/regulator/fan53555.c:373:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] di->vendor = (int) match->data; Fix this by using an appropriate cast. Reported-by: kbuild test robot Signed-off-by: Heiko Stuebner Signed-off-by: Mark Brown --- Reading git-diff-tree failed