[POWERPC] CPM: Move definition of buffer descriptor to cpm.h
[linux/fpc-iii.git] / arch / mips / kernel / pcspeaker.c
blob475df6904219b20923ceaf0c60d6c727bcea13dd
1 /*
2 * Copyright (C) 2006 IBM Corporation
4 * Implements device information for i8253 timer chip
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License version
8 * 2 as published by the Free Software Foundation
9 */
11 #include <linux/platform_device.h>
13 static __init int add_pcspkr(void)
15 struct platform_device *pd;
16 int ret;
18 pd = platform_device_alloc("pcspkr", -1);
19 if (!pd)
20 return -ENOMEM;
22 ret = platform_device_add(pd);
23 if (ret)
24 platform_device_put(pd);
26 return ret;
28 device_initcall(add_pcspkr);