lib/devres.c: use dev in devm_request_and_ioremap
authorFabian Frederick <fabf@skynet.be>
Fri, 23 May 2014 20:29:32 +0000 (22:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 22:28:01 +0000 (07:28 +0900)
devm_request_and_ioremap was the only function to use device
instead of dev. This fixes kernel-doc warning.

Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/devres.c

index 2f16c133fd368c9508a7c3bccf60cbec49648e9b..c7596bb54cf3ecac3e2081aa5d109522ff8dc346 100644 (file)
@@ -157,12 +157,12 @@ EXPORT_SYMBOL(devm_ioremap_resource);
  *     if (!base)
  *             return -EADDRNOTAVAIL;
  */
-void __iomem *devm_request_and_ioremap(struct device *device,
+void __iomem *devm_request_and_ioremap(struct device *dev,
                                       struct resource *res)
 {
        void __iomem *dest_ptr;
 
-       dest_ptr = devm_ioremap_resource(device, res);
+       dest_ptr = devm_ioremap_resource(dev, res);
        if (IS_ERR(dest_ptr))
                return NULL;