]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/staging/media/atomisp/platform/clock/platform_vlv2_plat_clk.c
media: Staging: media: atomisp: Use kcalloc instead of kzalloc
[mirror_ubuntu-bionic-kernel.git] / drivers / staging / media / atomisp / platform / clock / platform_vlv2_plat_clk.c
CommitLineData
a49d2536
AC
1/*
2 * platform_vlv2_plat_clk.c - VLV2 platform clock driver
3 * Copyright (C) 2013 Intel Corporation
4 *
5 * Author: Asutosh Pathak <asutosh.pathak@intel.com>
6 * Author: Chandra Sekhar Anagani <chandra.sekhar.anagani@intel.com>
7 * Author: Sergio Aguirre <sergio.a.aguirre.rodriguez@intel.com>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; version 2 of the License.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 */
19
20#include <linux/device.h>
21#include <linux/err.h>
22#include <linux/module.h>
23#include <linux/platform_device.h>
24#include <linux/printk.h>
25
26static int __init vlv2_plat_clk_init(void)
27{
28 struct platform_device *pdev;
29
30 pdev = platform_device_register_simple("vlv2_plat_clk", -1, NULL, 0);
31 if (IS_ERR(pdev)) {
32 pr_err("platform_vlv2_plat_clk:register failed: %ld\n",
33 PTR_ERR(pdev));
34 return PTR_ERR(pdev);
35 }
36
37 return 0;
38}
39
40device_initcall(vlv2_plat_clk_init);