Skip to content

Commit

Permalink
[PATCH] class: remove class_simple code, as no one in the tree is usi…
Browse files Browse the repository at this point in the history
…ng it anymore.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
gregkh@suse.de committed Jun 20, 2005
1 parent 2fc6844 commit cd987d3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 210 deletions.
2 changes: 1 addition & 1 deletion drivers/base/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile for the Linux device tree

obj-y := core.o sys.o bus.o \
driver.o class.o class_simple.o platform.o \
driver.o class.o platform.o \
cpu.o firmware.o init.o map.o dmapool.o \
attribute_container.o transport_class.o
obj-y += power/
Expand Down
199 changes: 0 additions & 199 deletions drivers/base/class_simple.c

This file was deleted.

10 changes: 0 additions & 10 deletions include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ struct device;
struct device_driver;
struct class;
struct class_device;
struct class_simple;

struct bus_type {
const char * name;
Expand Down Expand Up @@ -254,15 +253,6 @@ extern struct class_device *class_device_create(struct class *cls, dev_t devt,
__attribute__((format(printf,4,5)));
extern void class_device_destroy(struct class *cls, dev_t devt);

/* interface for class simple stuff */
extern struct class_simple *class_simple_create(struct module *owner, char *name);
extern void class_simple_destroy(struct class_simple *cs);
extern struct class_device *class_simple_device_add(struct class_simple *cs, dev_t dev, struct device *device, const char *fmt, ...)
__attribute__((format(printf,4,5)));
extern int class_simple_set_hotplug(struct class_simple *,
int (*hotplug)(struct class_device *dev, char **envp, int num_envp, char *buffer, int buffer_size));
extern void class_simple_device_remove(dev_t dev);


struct device {
struct list_head node; /* node in sibling list */
Expand Down

0 comments on commit cd987d3

Please sign in to comment.