Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebb242d5 authored by Geliang Tang's avatar Geliang Tang Committed by Michael Ellerman
Browse files

powerpc/of_platform: Use builtin_platform_driver



Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Acked-by: default avatarRussell Currey <ruscur@russell.cc>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 7184bc2d
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -114,11 +114,6 @@ static struct platform_driver of_pci_phb_driver = {
	},
};

static __init int of_pci_phb_init(void)
{
	return platform_driver_register(&of_pci_phb_driver);
}

device_initcall(of_pci_phb_init);
builtin_platform_driver(of_pci_phb_driver);

#endif /* CONFIG_PPC_OF_PLATFORM_PCI */