mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 21:23:23 +00:00
powerpc/pmac: Remove spurrious machine type test
pmac_declare_of_platform_devices() is already a machine initcall, thus it won't be called on a non-powermac machine. Testing for chrp there is pointless. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
2b4e3ad8f5
commit
b521f576df
@ -484,9 +484,6 @@ static int __init pmac_declare_of_platform_devices(void)
|
||||
{
|
||||
struct device_node *np;
|
||||
|
||||
if (machine_is(chrp))
|
||||
return -1;
|
||||
|
||||
np = of_find_node_by_name(NULL, "valkyrie");
|
||||
if (np) {
|
||||
of_platform_device_create(np, "valkyrie", NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user