aboutsummaryrefslogtreecommitdiffstats
path: root/dbus.patch
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-23 21:23:17 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-23 21:23:17 -0800
commit8ae2e05857e82516180aeb07b936a1a97e655865 (patch)
treeea2b05a14a498ac40c5f246e33dd6c0342283130 /dbus.patch
parent5bb14d0cc882760da3477f048833a6283d8fe277 (diff)
downloadpatches-8ae2e05857e82516180aeb07b936a1a97e655865.tar.gz
dbus
Diffstat (limited to 'dbus.patch')
-rw-r--r--dbus.patch78
1 files changed, 78 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 */