summaryrefslogtreecommitdiff
path: root/drivers/input/misc/tegra_odm_scroll.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/misc/tegra_odm_scroll.c')
-rw-r--r--drivers/input/misc/tegra_odm_scroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/tegra_odm_scroll.c b/drivers/input/misc/tegra_odm_scroll.c
index cf859c221f2e..6d0022f9cea9 100644
--- a/drivers/input/misc/tegra_odm_scroll.c
+++ b/drivers/input/misc/tegra_odm_scroll.c
@@ -95,7 +95,7 @@ static int __init tegra_scroll_probe(struct platform_device *pdev)
scroll = kzalloc(sizeof(struct tegra_scroll_dev), GFP_KERNEL);
input_dev = input_allocate_device();
- if (input_dev == NULL || ScrollWheel == NULL) {
+ if (input_dev == NULL || scroll == NULL) {
err = -ENOMEM;
pr_err("tegra_scroll_probe: Failed to allocate input device\n");
goto err_alloc_failed;
@@ -146,7 +146,7 @@ static int tegra_scroll_remove(struct platform_device *pdev)
input_unregister_device(scroll->input_dev);
NvOdmScrollWheelClose(scroll->odm_dev);
NvOdmOsSemaphoreDestroy(scroll->sem);
- kfree(ScrollWheel);
+ kfree(scroll);
return 0;
}