aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/tegra-kbc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/tegra-kbc.c')
-rw-r--r--drivers/input/keyboard/tegra-kbc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c
index 5faaf2553e3..c76f96872d3 100644
--- a/drivers/input/keyboard/tegra-kbc.c
+++ b/drivers/input/keyboard/tegra-kbc.c
@@ -87,7 +87,7 @@ struct tegra_kbc {
87 struct clk *clk; 87 struct clk *clk;
88}; 88};
89 89
90static const u32 tegra_kbc_default_keymap[] __devinitdata = { 90static const u32 tegra_kbc_default_keymap[] = {
91 KEY(0, 2, KEY_W), 91 KEY(0, 2, KEY_W),
92 KEY(0, 3, KEY_S), 92 KEY(0, 3, KEY_S),
93 KEY(0, 4, KEY_A), 93 KEY(0, 4, KEY_A),
@@ -223,7 +223,7 @@ static const u32 tegra_kbc_default_keymap[] __devinitdata = {
223}; 223};
224 224
225static const 225static const
226struct matrix_keymap_data tegra_kbc_default_keymap_data __devinitdata = { 226struct matrix_keymap_data tegra_kbc_default_keymap_data = {
227 .keymap = tegra_kbc_default_keymap, 227 .keymap = tegra_kbc_default_keymap,
228 .keymap_size = ARRAY_SIZE(tegra_kbc_default_keymap), 228 .keymap_size = ARRAY_SIZE(tegra_kbc_default_keymap),
229}; 229};
@@ -573,7 +573,7 @@ static void tegra_kbc_close(struct input_dev *dev)
573 return tegra_kbc_stop(kbc); 573 return tegra_kbc_stop(kbc);
574} 574}
575 575
576static bool __devinit 576static bool
577tegra_kbc_check_pin_cfg(const struct tegra_kbc_platform_data *pdata, 577tegra_kbc_check_pin_cfg(const struct tegra_kbc_platform_data *pdata,
578 struct device *dev, unsigned int *num_rows) 578 struct device *dev, unsigned int *num_rows)
579{ 579{
@@ -619,7 +619,7 @@ tegra_kbc_check_pin_cfg(const struct tegra_kbc_platform_data *pdata,
619} 619}
620 620
621#ifdef CONFIG_OF 621#ifdef CONFIG_OF
622static struct tegra_kbc_platform_data * __devinit tegra_kbc_dt_parse_pdata( 622static struct tegra_kbc_platform_data *tegra_kbc_dt_parse_pdata(
623 struct platform_device *pdev) 623 struct platform_device *pdev)
624{ 624{
625 struct tegra_kbc_platform_data *pdata; 625 struct tegra_kbc_platform_data *pdata;
@@ -670,7 +670,7 @@ static inline struct tegra_kbc_platform_data *tegra_kbc_dt_parse_pdata(
670} 670}
671#endif 671#endif
672 672
673static int __devinit tegra_kbd_setup_keymap(struct tegra_kbc *kbc) 673static int tegra_kbd_setup_keymap(struct tegra_kbc *kbc)
674{ 674{
675 const struct tegra_kbc_platform_data *pdata = kbc->pdata; 675 const struct tegra_kbc_platform_data *pdata = kbc->pdata;
676 const struct matrix_keymap_data *keymap_data = pdata->keymap_data; 676 const struct matrix_keymap_data *keymap_data = pdata->keymap_data;
@@ -697,7 +697,7 @@ static int __devinit tegra_kbd_setup_keymap(struct tegra_kbc *kbc)
697 return retval; 697 return retval;
698} 698}
699 699
700static int __devinit tegra_kbc_probe(struct platform_device *pdev) 700static int tegra_kbc_probe(struct platform_device *pdev)
701{ 701{
702 const struct tegra_kbc_platform_data *pdata = pdev->dev.platform_data; 702 const struct tegra_kbc_platform_data *pdata = pdev->dev.platform_data;
703 struct tegra_kbc *kbc; 703 struct tegra_kbc *kbc;
@@ -838,7 +838,7 @@ err_free_pdata:
838 return err; 838 return err;
839} 839}
840 840
841static int __devexit tegra_kbc_remove(struct platform_device *pdev) 841static int tegra_kbc_remove(struct platform_device *pdev)
842{ 842{
843 struct tegra_kbc *kbc = platform_get_drvdata(pdev); 843 struct tegra_kbc *kbc = platform_get_drvdata(pdev);
844 struct resource *res; 844 struct resource *res;
@@ -954,7 +954,7 @@ MODULE_DEVICE_TABLE(of, tegra_kbc_of_match);
954 954
955static struct platform_driver tegra_kbc_driver = { 955static struct platform_driver tegra_kbc_driver = {
956 .probe = tegra_kbc_probe, 956 .probe = tegra_kbc_probe,
957 .remove = __devexit_p(tegra_kbc_remove), 957 .remove = tegra_kbc_remove,
958 .driver = { 958 .driver = {
959 .name = "tegra-kbc", 959 .name = "tegra-kbc",
960 .owner = THIS_MODULE, 960 .owner = THIS_MODULE,