Skip to contentSkip to conversation

: sparc: arch/sparc/kernel/pmc.c -- extra #include?

PATCH In review David Miller 2 participants 2 messages Sep 21, 2008 – Sep 22, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 : sparc: arch/sparc/kernel/pmc.c -- extra #include?

I just applied the following patch sent to me privately from David Brownell to sparc-next-2.6

From: David Brownell <[email protected]>

sparc: arch/sparc/kernel/pmc.c -- extra #include?

I have no SPARC compiler handy to verify, but it looks like this is another file that doesn't need <linux/miscdevices.h> ...

---
 arch/sparc/kernel/pmc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
arch/sparc/kernel/pmc.c +0 -2
index 814eb3c..2afcfab 100644
@@ -8,7 +8,6 @@
 #include <linux/fs.h>
 #include <linux/errno.h>
 #include <linux/init.h>
-#include <linux/miscdevice.h>
 #include <linux/pm.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
@@ -24,7 +23,6 @@
  * #define PMC_NO_IDLE
  */
 
-#define PMC_MINOR	MISC_DYNAMIC_MINOR
 #define PMC_OBPNAME	"SUNW,pmc"
 #define PMC_DEVNAME "pmc"
 
Signature · 1 line
1.5.6.5
#1 lore raw

PMC contains a backlight control for the Voyager display; ioctl support for controlling it was prototyped but never integrated into the driver, so removal of the miscdevice support is fair.

E

Quoted 44 lines · David Miller

I just applied the following patch sent to me privately from David Brownell to sparc-next-2.6

From: David Brownell <[email protected]>

sparc: arch/sparc/kernel/pmc.c -- extra #include?

I have no SPARC compiler handy to verify, but it looks like this is another file that doesn't need <linux/miscdevices.h> ...

---
 arch/sparc/kernel/pmc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
arch/sparc/kernel/pmc.c +0 -3
index 814eb3c..2afcfab 100644
@@ -8,7 +8,6 @@
 #include <linux/fs.h>
 #include <linux/errno.h>
 #include <linux/init.h>
-#include <linux/miscdevice.h>
 #include <linux/pm.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
@@ -24,7 +23,6 @@
 * #define PMC_NO_IDLE
 */
 
-#define PMC_MINOR      MISC_DYNAMIC_MINOR
 #define PMC_OBPNAME    "SUNW,pmc"
 #define PMC_DEVNAME "pmc"
 
--

1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
E