From: oftedal Date: Wed, 1 Jun 2011 10:43:50 +0000 (+0000) Subject: Restructure sun4d_build_device_irq so that timer interrupts can be allocated X-Git-Tag: v3.0-rc3~17^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fba17084e5d1b00bf24e17b2b580cfa7705e7be;p=pandora-kernel.git Restructure sun4d_build_device_irq so that timer interrupts can be allocated sun4d_build_device_irq was called without a valid platform_device when the system timer was initialized on sun4d systems. This caused a NULL pointer crash. Josip Rodin suggested that the current sun4d_build_device_irq should be split into two functions. So that the timer initialization could skip the slot and sbus interface detection code in sun4d_build_device_irq, as this does not make sence due to the timer interrupts not being generated from a device located on sbus. Signed-off-by: Kjetil Oftedal Signed-off-by: David S. Miller --- Reading git-diff-tree failed