Path: blob/master/arch/mips/mipssim/sim_platform.c
10818 views
/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Copyright (C) 2007 by Ralf Baechle ([email protected])6*/7#include <linux/init.h>8#include <linux/if_ether.h>9#include <linux/kernel.h>10#include <linux/platform_device.h>1112static char mipsnet_string[] = "mipsnet";1314static struct platform_device eth1_device = {15.name = mipsnet_string,16.id = 0,17};1819/*20* Create a platform device for the GPI port that receives the21* image data from the embedded camera.22*/23static int __init mipsnet_devinit(void)24{25int err;2627err = platform_device_register(ð1_device);28if (err)29printk(KERN_ERR "%s: registration failed\n", mipsnet_string);3031return err;32}3334device_initcall(mipsnet_devinit);353637