LCOV - code coverage report
Current view: top level - arch/x86/kernel - pcspeaker.c (source / functions) Hit Total Coverage
Test: combined.info Lines: 4 4 100.0 %
Date: 2022-03-28 13:20:08 Functions: 1 1 100.0 %
Branches: 1 2 50.0 %

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

Generated by: LCOV version 1.14