From 54e9cd5641cd265b3cdb2a6970b2764e8897996b Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Sat, 2 Feb 2008 22:15:07 +1100 Subject: [PATCH] --- yaml --- r: 82628 b: refs/heads/master c: 44414e14af3f18fc8c1b94e259cd760366f665ee h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Documentation/driver-model/platform.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 6df4ca885953..a02dc8958657 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cd35449b93ac128282c1f1f720e84c5935f9018e +refs/heads/master: 44414e14af3f18fc8c1b94e259cd760366f665ee diff --git a/trunk/Documentation/driver-model/platform.txt b/trunk/Documentation/driver-model/platform.txt index 2a97320ee17f..83009fdcbbc8 100644 --- a/trunk/Documentation/driver-model/platform.txt +++ b/trunk/Documentation/driver-model/platform.txt @@ -122,15 +122,15 @@ None the less, there are some APIs to support such legacy drivers. Avoid using these calls except with such hotplug-deficient drivers. struct platform_device *platform_device_alloc( - char *name, unsigned id); + const char *name, int id); You can use platform_device_alloc() to dynamically allocate a device, which you will then initialize with resources and platform_device_register(). A better solution is usually: struct platform_device *platform_device_register_simple( - char *name, unsigned id, - struct resource *res, unsigned nres); + const char *name, int id, + struct resource *res, unsigned int nres); You can use platform_device_register_simple() as a one-step call to allocate and register a device.