diff options
author | Gary King <GKing@nvidia.com> | 2010-02-04 10:23:09 -0800 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-02-10 20:05:56 -0800 |
commit | 140c5a12fb023152eded54a9e9aebb850463e0db (patch) | |
tree | 6ee4eaf751f293bb93676e8c02c68e58f4d454e0 /arch | |
parent | 2d0001233c340d58f208e6a3440370297d43e26b (diff) |
nvmap: change from platform device to mem device
in order to implement user vs super-user protections for the nvmap
functionality, multiple device nodes need to be created with separate
file operations, similar to the mem vs kmem separation.
since nvmap is conceptually similar to the other "mem" class devices,
the multiple device nodes are added as new minor numbers in the mem
class, and the existing platform driver registration is removed.
Change-Id: Ie260e4c56679682133d90a69c0985eaaa5a4d071
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board_nvodm.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-tegra/board_nvodm.c b/arch/arm/mach-tegra/board_nvodm.c index b1404b6ff00f..9a30d313600c 100644 --- a/arch/arm/mach-tegra/board_nvodm.c +++ b/arch/arm/mach-tegra/board_nvodm.c @@ -75,12 +75,6 @@ static struct platform_device nvrm_device = .name = "nvrm" }; -#ifdef CONFIG_DEVNVMAP -static struct platform_device nvmap_device = { - .name = "nvmap_drv" -}; -#endif - #if defined(CONFIG_USB_ANDROID) || defined(CONFIG_USB_ANDROID_MODULE) static struct android_usb_platform_data android_usb_plat = { @@ -421,10 +415,6 @@ static void __init tegra_machine_init(void) (void) platform_device_register(&tegra_touch_device); #endif -#ifdef CONFIG_DEVNVMAP - (void) platform_device_register(&nvmap_device); -#endif - #ifdef CONFIG_INPUT_TEGRA_ODM_ACCEL (void) platform_device_register(&tegra_accelerometer_device); #endif |