LCOV - code coverage report
Current view: top level - drivers/base - container.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 9 0.0 %
Date: 2014-04-16 Functions: 0 3 0.0 %
Branches: 0 4 0.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * System bus type for containers.
       3                 :            :  *
       4                 :            :  * Copyright (C) 2013, Intel Corporation
       5                 :            :  * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
       6                 :            :  *
       7                 :            :  * This program is free software; you can redistribute it and/or modify
       8                 :            :  * it under the terms of the GNU General Public License version 2 as
       9                 :            :  * published by the Free Software Foundation.
      10                 :            :  */
      11                 :            : 
      12                 :            : #include <linux/container.h>
      13                 :            : 
      14                 :            : #include "base.h"
      15                 :            : 
      16                 :            : #define CONTAINER_BUS_NAME      "container"
      17                 :            : 
      18                 :          0 : static int trivial_online(struct device *dev)
      19                 :            : {
      20                 :          0 :         return 0;
      21                 :            : }
      22                 :            : 
      23                 :          0 : static int container_offline(struct device *dev)
      24                 :            : {
      25                 :            :         struct container_dev *cdev = to_container_dev(dev);
      26                 :            : 
      27         [ #  # ]:          0 :         return cdev->offline ? cdev->offline(cdev) : 0;
      28                 :            : }
      29                 :            : 
      30                 :            : struct bus_type container_subsys = {
      31                 :            :         .name = CONTAINER_BUS_NAME,
      32                 :            :         .dev_name = CONTAINER_BUS_NAME,
      33                 :            :         .online = trivial_online,
      34                 :            :         .offline = container_offline,
      35                 :            : };
      36                 :            : 
      37                 :          0 : void __init container_dev_init(void)
      38                 :            : {
      39                 :            :         int ret;
      40                 :            : 
      41                 :          0 :         ret = subsys_system_register(&container_subsys, NULL);
      42         [ #  # ]:          0 :         if (ret)
      43                 :          0 :                 pr_err("%s() failed: %d\n", __func__, ret);
      44                 :          0 : }

Generated by: LCOV version 1.9