Skip to contentSkip to conversation

make suspend_device() static

PATCH In review Adrian Bunk 2 participants 3 messages Jan 28, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make suspend_device() static

suspend_device() can become static.

---
344fcfcea0df8cbaa83e10d7e66b826ead67290b

drivers/base/power/main.c +1 -1
index 200ed5f..cfcc54f 100644
@@ -414,7 +414,7 @@ EXPORT_SYMBOL_GPL(device_power_down);
  *	@dev:	Device.
  *	@state:	Power state device is entering.
  */
-int suspend_device(struct device *dev, pm_message_t state)
+static int suspend_device(struct device *dev, pm_message_t state)
 {
 	int error = 0;
 
#1 lore raw
Quoted 1 line · Adrian Bunk

suspend_device() can become static.

That's correct. I'll push the patch to Len.

Quoted 18 lines

---
344fcfcea0df8cbaa83e10d7e66b826ead67290b

drivers/base/power/main.c +1 -1
index 200ed5f..cfcc54f 100644
@@ -414,7 +414,7 @@ EXPORT_SYMBOL_GPL(device_power_down);
  *	@dev:	Device.
  *	@state:	Power state device is entering.
  */
-int suspend_device(struct device *dev, pm_message_t state)
+static int suspend_device(struct device *dev, pm_message_t state)
 {
 	int error = 0;
 
#2 lore raw
In reply to Adrian Bunk
Quoted 1 line · Adrian Bunk

suspend_device() can become static.

That's correct. I'll push the patch to Len.

Quoted 18 lines

---
344fcfcea0df8cbaa83e10d7e66b826ead67290b

drivers/base/power/main.c +1 -1
index 200ed5f..cfcc54f 100644
@@ -414,7 +414,7 @@ EXPORT_SYMBOL_GPL(device_power_down);
  *	@dev:	Device.
  *	@state:	Power state device is entering.
  */
-int suspend_device(struct device *dev, pm_message_t state)
+static int suspend_device(struct device *dev, pm_message_t state)
 {
 	int error = 0;