pcspeaker.c 309 B

1234567891011121314
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/platform_device.h>
  3. #include <linux/err.h>
  4. #include <linux/init.h>
  5. static __init int add_pcspkr(void)
  6. {
  7. struct platform_device *pd;
  8. pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
  9. return PTR_ERR_OR_ZERO(pd);
  10. }
  11. device_initcall(add_pcspkr);