]> git.karo-electronics.de Git - linux-beck.git/commitdiff
firmware: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
authorFabian Frederick <fabf@skynet.be>
Tue, 1 Jul 2014 19:13:30 +0000 (21:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:27:04 +0000 (15:27 -0700)
use mm.h definition

Cc: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c

index 304691c5e2bcf817e7de8d9e4b14df665c95c364..28bc6db9fbf4f5044308a662c30f2ae677ffd7a5 100644 (file)
@@ -712,7 +712,7 @@ out:
 static int fw_realloc_buffer(struct firmware_priv *fw_priv, int min_size)
 {
        struct firmware_buf *buf = fw_priv->buf;
-       int pages_needed = ALIGN(min_size, PAGE_SIZE) >> PAGE_SHIFT;
+       int pages_needed = PAGE_ALIGN(min_size) >> PAGE_SHIFT;
 
        /* If the array of pages is too small, grow it... */
        if (buf->page_array_size < pages_needed) {