Commit 7614e1d9 authored by Ben Dooks's avatar Ben Dooks

ARM: VR1000: Update mach-vr1000.c to use gpiolib API

Change mach-vr1000.c to use gpiolib for gpio control.
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 408c8b8c
......@@ -357,8 +357,7 @@ static struct clk *vr1000_clocks[] __initdata = {
static void vr1000_power_off(void)
{
s3c2410_gpio_cfgpin(S3C2410_GPB(9), S3C2410_GPIO_OUTPUT);
s3c2410_gpio_setpin(S3C2410_GPB(9), 1);
gpio_direction_output(S3C2410_GPB(9), 1);
}
static void __init vr1000_map_io(void)
......@@ -395,6 +394,8 @@ static void __init vr1000_init(void)
nor_simtec_init();
simtec_audio_add(NULL, true, NULL);
WARN_ON(gpio_request(S3C2410_GPB(9), "power off"));
}
MACHINE_START(VR1000, "Thorcom-VR1000")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment