|
@@ -237,8 +237,7 @@ static void shark_unregister_leds(struct shark_device *shark)
|
|
cancel_work_sync(&shark->led_work);
|
|
cancel_work_sync(&shark->led_work);
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
|
-static void shark_resume_leds(struct shark_device *shark)
|
|
|
|
|
|
+static inline void shark_resume_leds(struct shark_device *shark)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
|
|
|
|
@@ -247,7 +246,6 @@ static void shark_resume_leds(struct shark_device *shark)
|
|
|
|
|
|
schedule_work(&shark->led_work);
|
|
schedule_work(&shark->led_work);
|
|
}
|
|
}
|
|
-#endif
|
|
|
|
#else
|
|
#else
|
|
static int shark_register_leds(struct shark_device *shark, struct device *dev)
|
|
static int shark_register_leds(struct shark_device *shark, struct device *dev)
|
|
{
|
|
{
|