Commit ff2ee8cf authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

kobject: put kobject_actions in kobject.h

This prevents the extern declaration in the driver core.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cd030c4c
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "base.h" #include "base.h"
#include "power/power.h" #include "power/power.h"
extern const char *kobject_actions[];
int (*platform_notify)(struct device * dev) = NULL; int (*platform_notify)(struct device * dev) = NULL;
int (*platform_notify_remove)(struct device * dev) = NULL; int (*platform_notify_remove)(struct device * dev) = NULL;
......
...@@ -56,6 +56,9 @@ enum kobject_action { ...@@ -56,6 +56,9 @@ enum kobject_action {
KOBJ_MAX KOBJ_MAX
}; };
/* The list of strings defining the valid kobject actions as specified above */
extern const char *kobject_actions[];
struct kobject { struct kobject {
const char * k_name; const char * k_name;
char name[KOBJ_NAME_LEN]; char name[KOBJ_NAME_LEN];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment