From 0bf189abc52b89bfcfa9782543de7f5e90263fe5 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 8 May 2012 16:25:10 +0800 Subject: ARM: pxa: Use REGULATOR_SUPPLY macro Signed-off-by: Axel Lin Cc: Eric Miao Tested-by: Paul Parsons Acked-by: Philipp Zabel Acked-by: Robert Jarzmik Acked-by: Marek Vasut Acked-by: Jonathan Cameron Signed-off-by: Haojian Zhuang --- arch/arm/mach-pxa/stargate2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'arch/arm/mach-pxa/stargate2.c') diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c index 4cd645e29b64..30b1b0b3c7f7 100644 --- a/arch/arm/mach-pxa/stargate2.c +++ b/arch/arm/mach-pxa/stargate2.c @@ -151,10 +151,7 @@ static struct platform_device sht15 = { }; static struct regulator_consumer_supply stargate2_sensor_3_con[] = { - { - .dev_name = "sht15", - .supply = "vcc", - }, + REGULATOR_SUPPLY("vcc", "sht15"), }; enum stargate2_ldos{ -- cgit v1.2.3