[PATCH] ipmi: check, if default ports are accessible on PPC

ipmi_si_intf tries to access default ports, if no device could be found
elsewhere. On PPC we have a function to check, if these legacy IO ports
are accessible. This patch adds a check for these ports on PPC. This
patch fixes a breakage of IPMI module on PPC machines without a BMC.

Signed-off-by: Christian Krafft <krafft@de.ibm.com>
Acked-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Corey Minyard <minyard@acm.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Christian Krafft and committed by Linus Torvalds 4ff31d77 a8fa74ab

+5
+5
drivers/char/ipmi/ipmi_si_intf.c
··· 2478 2478 if (!info) 2479 2479 return; 2480 2480 2481 + #ifdef CONFIG_PPC_MERGE 2482 + if (check_legacy_ioport(ipmi_defaults[i].port)) 2483 + continue; 2484 + #endif 2485 + 2481 2486 info->addr_source = NULL; 2482 2487 2483 2488 info->si_type = ipmi_defaults[i].type;