summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorLinus Walleij <linus.ml.walleij@gmail.com>2009-04-27 04:38:16 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-16 08:30:24 +0400
commitc0afe7ba5e71d8ab66bc42f90b3e237581d3c509 (patch)
treea4fb6323ac6e21df4ea1264bee306c073479648f /drivers/base
parent309b7d60a345f402bec3cf9caadb53de4028e2aa (diff)
downloadlinux-c0afe7ba5e71d8ab66bc42f90b3e237581d3c509.tar.xz
driver core: Const-correct platform getbyname functions
This converts resource and IRQ getbyname functions for the platform bus to use const char *, I ran into compiler moanings when I tried using a const char * for looking up a certain resource. Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/platform.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index ead3f64c41d0..59df6290951b 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -69,7 +69,8 @@ EXPORT_SYMBOL_GPL(platform_get_irq);
* @name: resource name
*/
struct resource *platform_get_resource_byname(struct platform_device *dev,
- unsigned int type, char *name)
+ unsigned int type,
+ const char *name)
{
int i;
@@ -88,7 +89,7 @@ EXPORT_SYMBOL_GPL(platform_get_resource_byname);
* @dev: platform device
* @name: IRQ name
*/
-int platform_get_irq_byname(struct platform_device *dev, char *name)
+int platform_get_irq_byname(struct platform_device *dev, const char *name)
{
struct resource *r = platform_get_resource_byname(dev, IORESOURCE_IRQ,
name);