From e971290133d8151c468cd70206fedc92648feb58 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 24 May 2007 12:54:04 +0100 Subject: meth driver renovation The meth ethernet driver for the SGI IP32 aka O2 is so far still an old style driver which does not use the device driver model. This is now causing issues with some udev based gadgetry in debian-stable. Fixed by converting the meth driver to a platform device. Signed-off-by: Ralf Baechle -- Fixes since previous patch: o Fixed typo in meth_exit_module() Signed-off-by: Jeff Garzik --- arch/mips/sgi-ip32/ip32-platform.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 arch/mips/sgi-ip32/ip32-platform.c (limited to 'arch/mips/sgi-ip32/ip32-platform.c') diff --git a/arch/mips/sgi-ip32/ip32-platform.c b/arch/mips/sgi-ip32/ip32-platform.c new file mode 100644 index 000000000000..120b15932caf --- /dev/null +++ b/arch/mips/sgi-ip32/ip32-platform.c @@ -0,0 +1,20 @@ +#include +#include + +static __init int meth_devinit(void) +{ + struct platform_device *pd; + int ret; + + pd = platform_device_alloc("meth", -1); + if (!pd) + return -ENOMEM; + + ret = platform_device_add(pd); + if (ret) + platform_device_put(pd); + + return ret; +} + +device_initcall(meth_devinit); -- cgit v1.2.2