arm: tegra: cardhu: Removing initdata tag from regulator data
Laxman Dewangan [Wed, 2 Feb 2011 09:09:12 +0000 (14:09 +0530)]
The regulator data which is provided from board is used in the driver
after initializing driver. Hence removing initdata tag from such structure
to keep data in memory and not to reclaim to kernel after initialization
complete.

Original-Change-Id: Iae5629019066872564ceed6675d1e37e5b806e8d
Reviewed-on: http://git-master/r/18003
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: I7a0035e204fe9853727b3c25fc632aa4c261323c

Rebase-Id: Rd243bfe6d94c819822a5ffe9a79913dd3299295b

arch/arm/mach-tegra/board-cardhu-power.c

index 517539a..f84d387 100644 (file)
@@ -451,7 +451,7 @@ static int disable_load_switch_rail(
                .disable_rail = _disable,                               \
        },
 
-static __initdata struct gpio_switch_regulator_subdev_data gswitch_subdevs[] =
+static struct gpio_switch_regulator_subdev_data gswitch_subdevs[] =
 {
 /* Gpio switch regulator platform data */
 GREG_INIT(0, en_5v_cp,   NULL, TPS6591X_GPIO_GP0, false, 0, 0, 0, 0)
@@ -494,7 +494,7 @@ GREG_INIT(17, en_1v8_cam,  "vdd_gen1v8", TEGRA_GPIO_PBB4,
                        false, 0, 0, 0, 0)
 };
 
-static __initdata struct gpio_switch_regulator_platform_data  gswitch_pdata = {
+static struct gpio_switch_regulator_platform_data  gswitch_pdata = {
        .num_subdevs = ARRAY_SIZE(gswitch_subdevs),
        .subdevs = gswitch_subdevs,
 };