[BACK]Return to ip32-platform.c CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / arch / mips / sgi-ip32

File: [Development] / linux-2.6-xfs / arch / mips / sgi-ip32 / ip32-platform.c (download)

Revision 1.1, Fri Jun 8 16:17:19 2007 UTC (10 years, 4 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN

Merge up to 2.6.22-rc4
Merge of 2.6.x-xfs-melb:linux:28871a by kenmcd.

#include <linux/init.h>
#include <linux/platform_device.h>

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);