LCOV - code coverage report
Current view: top level - drivers/base - firmware.c (source / functions) Hit Total Coverage
Test: gcov_data_raspi2_real_modules_combined.info Lines: 4 4 100.0 %
Date: 2020-09-30 20:25:40 Functions: 1 1 100.0 %
Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : // SPDX-License-Identifier: GPL-2.0
       2                 :            : /*
       3                 :            :  * firmware.c - firmware subsystem hoohaw.
       4                 :            :  *
       5                 :            :  * Copyright (c) 2002-3 Patrick Mochel
       6                 :            :  * Copyright (c) 2002-3 Open Source Development Labs
       7                 :            :  * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de>
       8                 :            :  * Copyright (c) 2007 Novell Inc.
       9                 :            :  */
      10                 :            : #include <linux/kobject.h>
      11                 :            : #include <linux/module.h>
      12                 :            : #include <linux/init.h>
      13                 :            : #include <linux/device.h>
      14                 :            : 
      15                 :            : #include "base.h"
      16                 :            : 
      17                 :            : struct kobject *firmware_kobj;
      18                 :            : EXPORT_SYMBOL_GPL(firmware_kobj);
      19                 :            : 
      20                 :        207 : int __init firmware_init(void)
      21                 :            : {
      22                 :        207 :         firmware_kobj = kobject_create_and_add("firmware", NULL);
      23         [ +  - ]:        207 :         if (!firmware_kobj)
      24                 :            :                 return -ENOMEM;
      25                 :        207 :         return 0;
      26                 :            : }

Generated by: LCOV version 1.14