From: Geert Uytterhoeven Date: Thu, 20 Oct 2011 11:42:23 +0000 (+0200) Subject: fbdev/cirrusfb: Rewrite Zorro graphics card probing X-Git-Tag: v3.3-rc1~59^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e0d13364b417a40266999c61671db0ef8690ad3;p=pandora-kernel.git fbdev/cirrusfb: Rewrite Zorro graphics card probing As indicated by commit a7f4d00a82feb5b311f765bf9522bc55bee0684f ("zorro: Defer device_register() until all devices have been identified"), cirrusfb crashes if zorro_find_device() cannot find an expected device. Rewrite the Zorro device probe code to make it more robust, easier to understand, and more extensible. Other logical changes: - For cards that show up as 2 Zorro devices, autoprobe graphics memory sizes based on the size of the Zorro device containing the graphics memory. Acording to the NetBSD sources, this is safe. Signed-off-by: Geert Uytterhoeven Acked-by: Jeff Garzik Signed-off-by: Florian Tobias Schandinat --- Reading git-diff-tree failed