From: David Herrmann Date: Mon, 20 Jan 2014 18:54:18 +0000 (+0100) Subject: drm/udl: fix Bpp calculation in dumb_create() X-Git-Tag: v3.15-rc1~51^2~57^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b932d8ef009f37d397c211b1dc5d0b056f6ef64;p=pandora-kernel.git drm/udl: fix Bpp calculation in dumb_create() Probably a typo.. we obviously need "(bpp + 7) / 8" instead of "(bpp + 1) / 8". Unlikely to be hit in any sane code, but lets be safe. Use DIV_ROUND_UP() to avoid the problem entirely and make the core more readable. Reviewed-by: Daniel Vetter Signed-off-by: David Herrmann --- Reading git-diff-tree failed