diff options
author | Srikant Patnaik | 2015-01-13 15:08:24 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-13 15:08:24 +0530 |
commit | 97327692361306d1e6259021bc425e32832fdb50 (patch) | |
tree | fe9088f3248ec61e24f404f21b9793cb644b7f01 /drivers/misc/viatel/core.c | |
parent | 2d05a8f663478a44e088d122e0d62109bbc801d0 (diff) | |
parent | a3a8b90b61e21be3dde9101c4e86c881e0f06210 (diff) | |
download | FOSSEE-netbook-kernel-source-97327692361306d1e6259021bc425e32832fdb50.tar.gz FOSSEE-netbook-kernel-source-97327692361306d1e6259021bc425e32832fdb50.tar.bz2 FOSSEE-netbook-kernel-source-97327692361306d1e6259021bc425e32832fdb50.zip |
dirty fix to merging
Diffstat (limited to 'drivers/misc/viatel/core.c')
-rwxr-xr-x | drivers/misc/viatel/core.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/drivers/misc/viatel/core.c b/drivers/misc/viatel/core.c new file mode 100755 index 00000000..d06d7a48 --- /dev/null +++ b/drivers/misc/viatel/core.c @@ -0,0 +1,49 @@ +/* + * core.c + * + * VIA CBP driver for Linux + * + * Copyright (C) 2011 VIA TELECOM Corporation, Inc. + * Author: VIA TELECOM Corporation, Inc. + * + * This package is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ +#include <linux/module.h> +#include <linux/interrupt.h> +#include <linux/errno.h> +#include <linux/types.h> +#include <linux/delay.h> +#include <linux/wait.h> +#include <linux/platform_device.h> + +static struct kobject *viatel_kobj; + +struct kobject *viatel_kobject_add(const char *name) +{ + struct kobject *kobj = NULL; + if(viatel_kobj){ + kobj = kobject_create_and_add(name, viatel_kobj); + } + + return kobj; +} + +static int __init viatel_core_init(void) +{ + int ret = 0; + viatel_kobj = kobject_create_and_add("viatel", NULL); + if (!viatel_kobj){ + ret = -ENOMEM; + goto err_create_kobj; + } +err_create_kobj: + return ret; +} + +arch_initcall(viatel_core_init); |