From eda84c41d7be4c76c251d8fdbdbfd9e635f386ff Mon Sep 17 00:00:00 2001 From: juhosg Date: Tue, 17 Jun 2008 14:30:18 +0000 Subject: [adm5120] switch to 2.6.25.7 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11526 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../901-usb_convert_from_class_device.patch | 107 --------------------- 1 file changed, 107 deletions(-) delete mode 100644 target/linux/adm5120/patches-2.6.25/901-usb_convert_from_class_device.patch (limited to 'target/linux/adm5120/patches-2.6.25/901-usb_convert_from_class_device.patch') diff --git a/target/linux/adm5120/patches-2.6.25/901-usb_convert_from_class_device.patch b/target/linux/adm5120/patches-2.6.25/901-usb_convert_from_class_device.patch deleted file mode 100644 index da868ccba..000000000 --- a/target/linux/adm5120/patches-2.6.25/901-usb_convert_from_class_device.patch +++ /dev/null @@ -1,107 +0,0 @@ ---- a/drivers/usb/host/adm5120-dbg.c -+++ b/drivers/usb/host/adm5120-dbg.c -@@ -456,7 +456,7 @@ - } - - static ssize_t --show_async(struct class_device *class_dev, char *buf) -+show_async(struct device *dev, struct device_attribute *attr, char *buf) - { - struct usb_bus *bus; - struct usb_hcd *hcd; -@@ -464,7 +464,7 @@ - size_t temp; - unsigned long flags; - -- bus = class_get_devdata(class_dev); -+ bus = dev_get_drvdata(dev); - hcd = bus_to_hcd(bus); - ahcd = hcd_to_admhcd(hcd); - -@@ -475,13 +475,13 @@ - - return temp; - } --static CLASS_DEVICE_ATTR(async, S_IRUGO, show_async, NULL); -+static DEVICE_ATTR(async, S_IRUGO, show_async, NULL); - - - #define DBG_SCHED_LIMIT 64 - - static ssize_t --show_periodic(struct class_device *class_dev, char *buf) -+show_periodic(struct device *dev, struct device_attribute *attr, char *buf) - { - struct usb_bus *bus; - struct usb_hcd *hcd; -@@ -496,7 +496,7 @@ - return 0; - seen_count = 0; - -- bus = class_get_devdata(class_dev); -+ bus = dev_get_drvdata(dev); - hcd = bus_to_hcd(bus); - ahcd = hcd_to_admhcd(hcd); - next = buf; -@@ -574,13 +574,13 @@ - - return PAGE_SIZE - size; - } --static CLASS_DEVICE_ATTR(periodic, S_IRUGO, show_periodic, NULL); -+static DEVICE_ATTR(periodic, S_IRUGO, show_periodic, NULL); - - - #undef DBG_SCHED_LIMIT - - static ssize_t --show_registers(struct class_device *class_dev, char *buf) -+show_registers(struct device *dev, struct device_attribute *attr, char *buf) - { - struct usb_bus *bus; - struct usb_hcd *hcd; -@@ -591,7 +591,7 @@ - char *next; - u32 rdata; - -- bus = class_get_devdata(class_dev); -+ bus = dev_get_drvdata(dev); - hcd = bus_to_hcd(bus); - ahcd = hcd_to_admhcd(hcd); - regs = ahcd->regs; -@@ -656,27 +656,27 @@ - spin_unlock_irqrestore(&ahcd->lock, flags); - return PAGE_SIZE - size; - } --static CLASS_DEVICE_ATTR(registers, S_IRUGO, show_registers, NULL); -+static DEVICE_ATTR(registers, S_IRUGO, show_registers, NULL); - - - static inline void create_debug_files (struct admhcd *ahcd) - { -- struct class_device *cldev = admhcd_to_hcd(ahcd)->self.class_dev; -+ struct device *dev = admhcd_to_hcd(ahcd)->self.dev; - int retval; - -- retval = class_device_create_file(cldev, &class_device_attr_async); -- retval = class_device_create_file(cldev, &class_device_attr_periodic); -- retval = class_device_create_file(cldev, &class_device_attr_registers); -+ retval = device_create_file(dev, &dev_attr_async); -+ retval = device_create_file(dev, &dev_attr_periodic); -+ retval = device_create_file(dev, &dev_attr_registers); - admhc_dbg(ahcd, "created debug files\n"); - } - - static inline void remove_debug_files (struct admhcd *ahcd) - { -- struct class_device *cldev = admhcd_to_hcd(ahcd)->self.class_dev; -+ struct device *dev = admhcd_to_hcd(ahcd)->self.dev; - -- class_device_remove_file(cldev, &class_device_attr_async); -- class_device_remove_file(cldev, &class_device_attr_periodic); -- class_device_remove_file(cldev, &class_device_attr_registers); -+ device_remove_file(dev, &dev_attr_async); -+ device_remove_file(dev, &dev_attr_periodic); -+ device_remove_file(dev, &dev_attr_registers); - } - - #endif -- cgit v1.2.3