Skip to content
This repository
Browse code

minor

  • Loading branch information...
commit 76366fc57ac74dc3e59a6ada28bf8a4862d2645b 1 parent bf1286d
Constantine authored

Showing 1 changed file with 9 additions and 9 deletions. Show diff stats Hide diff stats

  1. +9 9 ldt_plat_drv.c
18 ldt_plat_drv.c
@@ -12,7 +12,7 @@
12 12 #include <linux/module.h>
13 13 #include <linux/platform_device.h>
14 14
15   -static __devinit int ldt_probe(struct platform_device *pdev)
  15 +static __devinit int ldt_plat_probe(struct platform_device *pdev)
16 16 {
17 17 char *data = NULL;
18 18 struct resource *r;
@@ -27,21 +27,21 @@ static __devinit int ldt_probe(struct platform_device *pdev)
27 27 return 0;
28 28 }
29 29
30   -static int __devexit ldt_remove(struct platform_device *pdev)
  30 +static int __devexit ldt_plat_remove(struct platform_device *pdev)
31 31 {
32 32 _entry:
33 33 return 0;
34 34 }
35 35
36   -static struct platform_driver ldt_driver = {
37   - .driver.name = "ldt_device_name",
  36 +static struct platform_driver ldt_plat_driver = {
  37 + .driver.name = "ldt_plat_device_name",
38 38 .driver.owner = THIS_MODULE,
39   - .probe = ldt_probe,
40   - .remove = __devexit_p(ldt_remove),
  39 + .probe = ldt_plat_probe,
  40 + .remove = __devexit_p(ldt_plat_remove),
41 41 };
42 42
43 43 #ifdef module_platform_driver
44   -module_platform_driver(ldt_driver);
  44 +module_platform_driver(ldt_plat_driver);
45 45 #else
46 46 /*
47 47 * for releases before v3.1-12 without macro module_platform_driver
@@ -50,14 +50,14 @@ static int ldt_plat_drv_init(void)
50 50 {
51 51 int ret = 0;
52 52 _entry:
53   - ret = platform_driver_register(&ldt_driver);
  53 + ret = platform_driver_register(&ldt_plat_driver);
54 54 return ret;
55 55 }
56 56
57 57 static void ldt_plat_drv_exit(void)
58 58 {
59 59 _entry:
60   - platform_driver_unregister(&ldt_driver);
  60 + platform_driver_unregister(&ldt_plat_driver);
61 61 }
62 62
63 63 module_init(ldt_plat_drv_init);

0 comments on commit 76366fc

Please sign in to comment.
Something went wrong with that request. Please try again.