GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / plat-samsung / dev-hwmon.c
blobb3ffb9587250ca90387f48ffdde872ac6d4793a7
1 /* linux/arch/arm/plat-samsung/dev-hwmon.c
3 * Copyright 2008 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
5 * http://armlinux.simtec.co.uk/
7 * Adapted for HWMON by Maurus Cuelenaere
9 * Samsung series device definition for HWMON
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
16 #include <linux/kernel.h>
17 #include <linux/platform_device.h>
19 #include <plat/devs.h>
20 #include <plat/hwmon.h>
22 struct platform_device s3c_device_hwmon = {
23 .name = "s3c-hwmon",
24 .id = -1,
25 .dev.parent = &s3c_device_adc.dev,
28 void __init s3c_hwmon_set_platdata(struct s3c_hwmon_pdata *pd)
30 struct s3c_hwmon_pdata *npd;
32 if (!pd) {
33 printk(KERN_ERR "%s: no platform data\n", __func__);
34 return;
37 npd = kmemdup(pd, sizeof(struct s3c_hwmon_pdata), GFP_KERNEL);
38 if (!npd)
39 printk(KERN_ERR "%s: no memory for platform data\n", __func__);
41 s3c_device_hwmon.dev.platform_data = npd;