Skip to contentSkip to conversation

hwmon: jz4740: Staticise jz4740_hwmon_driver

PATCH Applied Axel Lin 3 participants 3 messages Dec 8, 2011 Hardware monitoring

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 hwmon: jz4740: Staticise jz4740_hwmon_driver

It is not used outside this driver so no need to make the symbol global.

---
 drivers/hwmon/jz4740-hwmon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/jz4740-hwmon.c +1 -1
index 3d7e590..5253d23 100644
@@ -203,7 +203,7 @@ static int __devexit jz4740_hwmon_remove(struct platform_device *pdev)
 	return 0;
 }
 
-struct platform_driver jz4740_hwmon_driver = {
+static struct platform_driver jz4740_hwmon_driver = {
 	.probe	= jz4740_hwmon_probe,
 	.remove = __devexit_p(jz4740_hwmon_remove),
 	.driver = {
Signature · 9 lines
1.7.5.4




_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Axel Lin

It is not used outside this driver so no need to make the symbol global.

Thanks

Quoted 17 lines
---
 drivers/hwmon/jz4740-hwmon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/jz4740-hwmon.c +1 -1
index 3d7e590..5253d23 100644
@@ -203,7 +203,7 @@ static int __devexit jz4740_hwmon_remove(struct platform_device *pdev)
 	return 0;
 }
 
-struct platform_driver jz4740_hwmon_driver = {
+static struct platform_driver jz4740_hwmon_driver = {
 	.probe	= jz4740_hwmon_probe,
 	.remove = __devexit_p(jz4740_hwmon_remove),
 	.driver = {