summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-07-01 21:13:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-08 15:27:04 -0700
commita76040d835776f0e8cc2bf5f9edcfa2092449ae9 (patch)
tree8cd89d645c010b617f6001b687c9cde6afe4dfc2 /drivers/base
parent6af6b163b3191bd2802868f17d4843c58bc4046f (diff)
firmware: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
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>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/firmware_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 304691c5e2b..28bc6db9fbf 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -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) {