Skip to content

Commit

Permalink
firmware: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabian Frederick authored and Greg Kroah-Hartman committed Jul 8, 2014
1 parent 6af6b16 commit a76040d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/firmware_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ static ssize_t firmware_data_read(struct file *filp, struct kobject *kobj,
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) {
Expand Down

0 comments on commit a76040d

Please sign in to comment.