From: Andrew Morton Date: Sun, 26 Mar 2006 09:37:31 +0000 (-0800) Subject: [PATCH] tlclk: fix handling of device major X-Git-Tag: v2.6.17-rc1~625 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=222b9f933a76b127a073f45278d2b0199587e8ce;p=pandora-kernel.git [PATCH] tlclk: fix handling of device major tlclk calls register_chrdev() and permits register_chrdev() to allocate the major, but it promptly forgets what that major was. So if there's no hardware present you still get "telco_clock" appearing in /proc/devices and, I assume, an oops reading /proc/devices if tlclk was a module. Fix. Mark, I'd suggest that that we not call register_chrdev() until _after_ we've established that the hardware is present. Cc: Mark Gross Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed