diff options
| -rw-r--r-- | dbus.patch | 78 | ||||
| -rw-r--r-- | series | 1 |
2 files changed, 79 insertions, 0 deletions
diff --git a/dbus.patch b/dbus.patch new file mode 100644 index 00000000000000..45e1fac10db1cd --- /dev/null +++ b/dbus.patch @@ -0,0 +1,78 @@ +--- + drivers/char/Kconfig | 3 +++ + drivers/char/Makefile | 1 + + drivers/char/dbus.c | 32 ++++++++++++++++++++++++++++++++ + include/linux/dbus.h | 15 +++++++++++++++ + 4 files changed, 51 insertions(+) + +--- a/drivers/char/Kconfig ++++ b/drivers/char/Kconfig +@@ -604,5 +604,8 @@ config TILE_SROM + device appear much like a simple EEPROM, and knows + how to partition a single ROM for multiple purposes. + ++config DBUS ++ tristate "Kernel DBUS provider" ++ + endmenu + +--- a/drivers/char/Makefile ++++ b/drivers/char/Makefile +@@ -62,3 +62,4 @@ obj-$(CONFIG_JS_RTC) += js-rtc.o + js-rtc-y = rtc.o + + obj-$(CONFIG_TILE_SROM) += tile-srom.o ++obj-$(CONFIG_DBUS) += dbus.o +--- /dev/null ++++ b/drivers/char/dbus.c +@@ -0,0 +1,32 @@ ++/* ++ * dbus - in kernel dbus functionality ++ * ++ * Copyright (C) 2012 Greg Kroah-Hartman <gregkh@linuxfoundation.org> ++ * Copyright (C) 2012 Linux Foundation ++ * ++ * This file is released under the GPLv2 only. ++ */ ++ ++#include <linux/types.h> ++#include <linux/mutex.h> ++#include <linux/idr.h> ++#include <linux/module.h> ++#include <linux/dbus.h> ++ ++static DEFINE_MUTEX(minor_lock); ++static DEFINE_IDR(minor_idr); ++ ++ ++static int init(void) ++{ ++ return 0; ++} ++ ++static void exit(void) ++{ ++} ++ ++module_init(init); ++module_exit(exit); ++ ++MODULE_LICENSE("GPLv2"); +--- /dev/null ++++ b/include/linux/dbus.h +@@ -0,0 +1,15 @@ ++/* ++ * dbus.h - user/kernel dbus api ++ * ++ * Copyright (C) 2012 Greg Kroah-Hartman <gregkh@linuxfoundation.org> ++ * Copyright (C) 2012 Linux Foundation ++ * ++ * Released under the GPLv2 only. ++ */ ++ ++#ifndef __DBUS_H ++#define __DBUS_H ++ ++ ++ ++#endif /* __DBUS_H */ @@ -1,4 +1,5 @@ # My specific stuff, at the top to make it easier to work stuff below. +dbus.patch dev_removal.patch f01 f02 |
