From: Laurent Pinchart Date: Mon, 30 May 2011 18:45:47 +0000 (-0300) Subject: [media] media: Fix media device minor registration X-Git-Tag: v3.0-rc3~35^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c89ddd536bbe97c1e50424778a139abbf5763c3;p=pandora-kernel.git [media] media: Fix media device minor registration The find_next_zero_bit() is called with the from and to arguments in the wrong order. This results in the function always returning 0, and all media devices being registered with minor 0. Furthermore, mdev->minor is then used before being assigned with the find_next_zero_bit() return value. This really makes sure we'll always use minor 0. Fix this and let the system support more than one media device. Signed-off-by: Laurent Pinchart Cc: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed