]> git.baikalelectronics.ru Git - kernel.git/commit
Restructure sun4d_build_device_irq so that timer interrupts can be allocated
authoroftedal <oftedal@gmail.com>
Wed, 1 Jun 2011 10:43:50 +0000 (10:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2011 23:06:32 +0000 (16:06 -0700)
commitf7725b6d1155437d9182d162b7d33d4f94257b0f
tree522a070938752ceb822ce9b6b270df6bf7e6cfde
parentfa3196045240254800f51578a755009dad306886
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 <oftedal@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sun4d_irq.c