* [GIT PATCH] Driver Core patches for 2.6.18-rc1
@ 2006-07-12 23:23 Greg KH
2006-07-12 23:26 ` [PATCH 1/5] [PATCH] Driver core: fix driver-core kernel-doc Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2006-07-12 23:23 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel
Here are some driver core patches and fixes for 2.6.18-rc1. They
contain the following changes:
- documentation fixes
- remove unused functions and symbols
All of these patches have been in the -mm tree for a while.
Please pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6.git/
or if master.kernel.org hasn't synced up yet:
master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6.git/
Patches will be sent as a follow-on to this message to lkml for people
to see.
thanks,
greg k-h
Documentation/feature-removal-schedule.txt | 8 ------
drivers/base/bus.c | 5 ++--
drivers/base/core.c | 30 +++++++++++------------
include/linux/ioport.h | 2 +-
include/linux/pm_legacy.h | 7 -----
kernel/power/pm.c | 37 ----------------------------
kernel/resource.c | 2 --
7 files changed, 19 insertions(+), 72 deletions(-)
---------------
Adrian Bunk:
Driver core: bus.c cleanups
remove kernel/power/pm.c:pm_unregister_all()
The scheduled unexport of insert_resource
Henrik Kretzschmar:
Driver core: kernel-doc in drivers/base/core.c corrections
Randy Dunlap:
Driver core: fix driver-core kernel-doc
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/5] [PATCH] Driver core: fix driver-core kernel-doc
2006-07-12 23:23 [GIT PATCH] Driver Core patches for 2.6.18-rc1 Greg KH
@ 2006-07-12 23:26 ` Greg KH
2006-07-12 23:26 ` [PATCH 2/5] [PATCH] Driver core: kernel-doc in drivers/base/core.c corrections Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2006-07-12 23:26 UTC (permalink / raw)
To: linux-kernel; +Cc: Randy Dunlap, Greg Kroah-Hartman
From: Randy Dunlap <rdunlap@xenotime.net>
Warning(/var/linsrc/linux-2617-g4//drivers/base/core.c:574): No description found for parameter 'class'
Warning(/var/linsrc/linux-2617-g4//drivers/base/core.c:574): No description found for parameter 'devt'
Warning(/var/linsrc/linux-2617-g4//drivers/base/core.c:626): No description found for parameter 'devt'
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/base/core.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/base/core.c b/drivers/base/core.c
index b21f864..e61ad4e 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -559,9 +559,9 @@ static void device_create_release(struct
/**
* device_create - creates a device and registers it with sysfs
- * @cs: pointer to the struct class that this device should be registered to.
+ * @class: pointer to the struct class that this device should be registered to.
* @parent: pointer to the parent struct device of this new device, if any.
- * @dev: the dev_t for the char device to be added.
+ * @devt: the dev_t for the char device to be added.
* @fmt: string for the class device's name
*
* This function can be used by char device classes. A struct
@@ -621,7 +621,7 @@ EXPORT_SYMBOL_GPL(device_create);
/**
* device_destroy - removes a device that was created with device_create()
* @class: the pointer to the struct class that this device was registered * with.
- * @dev: the dev_t of the device that was previously registered.
+ * @devt: the dev_t of the device that was previously registered.
*
* This call unregisters and cleans up a class device that was created with a
* call to class_device_create()
--
1.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/5] [PATCH] Driver core: kernel-doc in drivers/base/core.c corrections
2006-07-12 23:26 ` [PATCH 1/5] [PATCH] Driver core: fix driver-core kernel-doc Greg KH
@ 2006-07-12 23:26 ` Greg KH
2006-07-12 23:26 ` [PATCH 3/5] [PATCH] Driver core: bus.c cleanups Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2006-07-12 23:26 UTC (permalink / raw)
To: linux-kernel; +Cc: Henrik Kretzschmar, Greg Kroah-Hartman
From: Henrik Kretzschmar <henne@nachtwindheim.de>
Corrects the kerneldocs for device_create() and device_destroy()
with an eye on coding style, grammar and readability.
Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/base/core.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/drivers/base/core.c b/drivers/base/core.c
index e61ad4e..be6b5bc 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -559,20 +559,20 @@ static void device_create_release(struct
/**
* device_create - creates a device and registers it with sysfs
- * @class: pointer to the struct class that this device should be registered to.
- * @parent: pointer to the parent struct device of this new device, if any.
- * @devt: the dev_t for the char device to be added.
- * @fmt: string for the class device's name
+ * @class: pointer to the struct class that this device should be registered to
+ * @parent: pointer to the parent struct device of this new device, if any
+ * @devt: the dev_t for the char device to be added
+ * @fmt: string for the device's name
+ *
+ * This function can be used by char device classes. A struct device
+ * will be created in sysfs, registered to the specified class.
*
- * This function can be used by char device classes. A struct
- * device will be created in sysfs, registered to the specified
- * class.
* A "dev" file will be created, showing the dev_t for the device, if
* the dev_t is not 0,0.
- * If a pointer to a parent struct device is passed in, the newly
- * created struct device will be a child of that device in sysfs. The
- * pointer to the struct device will be returned from the call. Any
- * further sysfs files that might be required can be created using this
+ * If a pointer to a parent struct device is passed in, the newly created
+ * struct device will be a child of that device in sysfs.
+ * The pointer to the struct device will be returned from the call.
+ * Any further sysfs files that might be required can be created using this
* pointer.
*
* Note: the struct class passed to this function must have previously
@@ -620,11 +620,11 @@ EXPORT_SYMBOL_GPL(device_create);
/**
* device_destroy - removes a device that was created with device_create()
- * @class: the pointer to the struct class that this device was registered * with.
- * @devt: the dev_t of the device that was previously registered.
+ * @class: pointer to the struct class that this device was registered with
+ * @devt: the dev_t of the device that was previously registered
*
- * This call unregisters and cleans up a class device that was created with a
- * call to class_device_create()
+ * This call unregisters and cleans up a device that was created with a
+ * call to device_create().
*/
void device_destroy(struct class *class, dev_t devt)
{
--
1.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/5] [PATCH] Driver core: bus.c cleanups
2006-07-12 23:26 ` [PATCH 2/5] [PATCH] Driver core: kernel-doc in drivers/base/core.c corrections Greg KH
@ 2006-07-12 23:26 ` Greg KH
2006-07-12 23:26 ` [PATCH 4/5] [PATCH] remove kernel/power/pm.c:pm_unregister_all() Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2006-07-12 23:26 UTC (permalink / raw)
To: linux-kernel; +Cc: Adrian Bunk, Greg Kroah-Hartman
From: Adrian Bunk <bunk@stusta.de>
This patch contains the following cleanups:
- make the needlessly global bus_subsys static
- #if 0 the unused find_bus()
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/base/bus.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 83fa8b2..2e954d0 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -129,7 +129,7 @@ static struct kobj_type ktype_bus = {
};
-decl_subsys(bus, &ktype_bus, NULL);
+static decl_subsys(bus, &ktype_bus, NULL);
#ifdef CONFIG_HOTPLUG
@@ -598,12 +598,13 @@ void put_bus(struct bus_type * bus)
*
* Note that kset_find_obj increments bus' reference count.
*/
-
+#if 0
struct bus_type * find_bus(char * name)
{
struct kobject * k = kset_find_obj(&bus_subsys.kset, name);
return k ? to_bus(k) : NULL;
}
+#endif /* 0 */
/**
--
1.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 4/5] [PATCH] remove kernel/power/pm.c:pm_unregister_all()
2006-07-12 23:26 ` [PATCH 3/5] [PATCH] Driver core: bus.c cleanups Greg KH
@ 2006-07-12 23:26 ` Greg KH
2006-07-12 23:26 ` [PATCH 5/5] [PATCH] The scheduled unexport of insert_resource Greg KH
0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2006-07-12 23:26 UTC (permalink / raw)
To: linux-kernel; +Cc: Adrian Bunk, Andrew Morton, Greg Kroah-Hartman
From: Adrian Bunk <bunk@stusta.de>
Remove the deprecated and no longer used pm_unregister_all().
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
include/linux/pm_legacy.h | 7 -------
kernel/power/pm.c | 37 -------------------------------------
2 files changed, 0 insertions(+), 44 deletions(-)
diff --git a/include/linux/pm_legacy.h b/include/linux/pm_legacy.h
index 78027c5..514729a 100644
--- a/include/linux/pm_legacy.h
+++ b/include/linux/pm_legacy.h
@@ -15,11 +15,6 @@ struct pm_dev __deprecated *
pm_register(pm_dev_t type, unsigned long id, pm_callback callback);
/*
- * Unregister all devices with matching callback
- */
-void __deprecated pm_unregister_all(pm_callback callback);
-
-/*
* Send a request to all devices
*/
int __deprecated pm_send_all(pm_request_t rqst, void *data);
@@ -35,8 +30,6 @@ static inline struct pm_dev *pm_register
return NULL;
}
-static inline void pm_unregister_all(pm_callback callback) {}
-
static inline int pm_send_all(pm_request_t rqst, void *data)
{
return 0;
diff --git a/kernel/power/pm.c b/kernel/power/pm.c
index 84063ac..c50d152 100644
--- a/kernel/power/pm.c
+++ b/kernel/power/pm.c
@@ -75,42 +75,6 @@ struct pm_dev *pm_register(pm_dev_t type
return dev;
}
-static void __pm_unregister(struct pm_dev *dev)
-{
- if (dev) {
- list_del(&dev->entry);
- kfree(dev);
- }
-}
-
-/**
- * pm_unregister_all - unregister all devices with matching callback
- * @callback: callback function pointer
- *
- * Unregister every device that would call the callback passed. This
- * is primarily meant as a helper function for loadable modules. It
- * enables a module to give up all its managed devices without keeping
- * its own private list.
- */
-
-void pm_unregister_all(pm_callback callback)
-{
- struct list_head *entry;
-
- if (!callback)
- return;
-
- mutex_lock(&pm_devs_lock);
- entry = pm_devs.next;
- while (entry != &pm_devs) {
- struct pm_dev *dev = list_entry(entry, struct pm_dev, entry);
- entry = entry->next;
- if (dev->callback == callback)
- __pm_unregister(dev);
- }
- mutex_unlock(&pm_devs_lock);
-}
-
/**
* pm_send - send request to a single device
* @dev: device to send to
@@ -239,7 +203,6 @@ int pm_send_all(pm_request_t rqst, void
}
EXPORT_SYMBOL(pm_register);
-EXPORT_SYMBOL(pm_unregister_all);
EXPORT_SYMBOL(pm_send_all);
EXPORT_SYMBOL(pm_active);
--
1.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 5/5] [PATCH] The scheduled unexport of insert_resource
2006-07-12 23:26 ` [PATCH 4/5] [PATCH] remove kernel/power/pm.c:pm_unregister_all() Greg KH
@ 2006-07-12 23:26 ` Greg KH
0 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2006-07-12 23:26 UTC (permalink / raw)
To: linux-kernel; +Cc: Adrian Bunk, Andrew Morton, Greg Kroah-Hartman
From: Adrian Bunk <bunk@stusta.de>
Implement the scheduled unexport of insert_resource.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
Documentation/feature-removal-schedule.txt | 8 --------
include/linux/ioport.h | 2 +-
kernel/resource.c | 2 --
3 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index ee28798..47d714d 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -55,14 +55,6 @@ Who: Mauro Carvalho Chehab <mchehab@brtu
---------------------------
-What: remove EXPORT_SYMBOL(insert_resource)
-When: April 2006
-Files: kernel/resource.c
-Why: No modular usage in the kernel.
-Who: Adrian Bunk <bunk@stusta.de>
-
----------------------------
-
What: PCMCIA control ioctl (needed for pcmcia-cs [cardmgr, cardctl])
When: November 2005
Files: drivers/pcmcia/: pcmcia_ioctl.c
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index 5612dfe..d42c833 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -97,7 +97,7 @@ extern struct resource iomem_resource;
extern int request_resource(struct resource *root, struct resource *new);
extern struct resource * ____request_resource(struct resource *root, struct resource *new);
extern int release_resource(struct resource *new);
-extern __deprecated_for_modules int insert_resource(struct resource *parent, struct resource *new);
+extern int insert_resource(struct resource *parent, struct resource *new);
extern int allocate_resource(struct resource *root, struct resource *new,
resource_size_t size, resource_size_t min,
resource_size_t max, resource_size_t align,
diff --git a/kernel/resource.c b/kernel/resource.c
index 129cf04..0dd3a85 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -404,8 +404,6 @@ int insert_resource(struct resource *par
return result;
}
-EXPORT_SYMBOL(insert_resource);
-
/*
* Given an existing resource, change its start and size to match the
* arguments. Returns -EBUSY if it can't fit. Existing children of
--
1.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-07-12 23:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-12 23:23 [GIT PATCH] Driver Core patches for 2.6.18-rc1 Greg KH
2006-07-12 23:26 ` [PATCH 1/5] [PATCH] Driver core: fix driver-core kernel-doc Greg KH
2006-07-12 23:26 ` [PATCH 2/5] [PATCH] Driver core: kernel-doc in drivers/base/core.c corrections Greg KH
2006-07-12 23:26 ` [PATCH 3/5] [PATCH] Driver core: bus.c cleanups Greg KH
2006-07-12 23:26 ` [PATCH 4/5] [PATCH] remove kernel/power/pm.c:pm_unregister_all() Greg KH
2006-07-12 23:26 ` [PATCH 5/5] [PATCH] The scheduled unexport of insert_resource Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox