]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] add check for initialized driver data to pmi driver
authorChristian Krafft <krafft@de.ibm.com>
Mon, 23 Apr 2007 19:35:43 +0000 (21:35 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Mon, 23 Apr 2007 19:44:40 +0000 (21:44 +0200)
commitfe21d515897f30ab14e1028bfcdfb95a6d2a87de
treebe23358bee3fc9094485b574cea06201f470ad0b
parentb2bc7e4554529ce0ab79b8a0672489b5590ed848
[POWERPC] add check for initialized driver data to pmi driver

This patch adds a check for the private driver data to be initialized.
The bug showed up, as the caller found a pmi device by it's type.
Whereas the pmi driver probes for the type and the name.
Since the name was not as the driver expected, it did not initialize.
A more relaxed probing will be supplied with an extra patch, too.

Signed-off-by: Christian Krafft <krafft@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/sysdev/pmi.c