diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 12:45:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 12:45:39 -0400 |
commit | de0a5345a55b8dd5a4695181275df0e691176830 (patch) | |
tree | 17530e824f7f46ce0b1757657179fb5957a6add5 /drivers/char | |
parent | 994c0e992522c123298b4a91b72f5e67ba2d1123 (diff) | |
parent | 8535639810e578960233ad39def3ac2157b0c3ec (diff) |
Merge branch 'for-linus' of git://github.com/richardweinberger/linux
* 'for-linus' of git://github.com/richardweinberger/linux: (90 commits)
um: fix ubd cow size
um: Fix kmalloc argument order in um/vdso/vma.c
um: switch to use of drivers/Kconfig
UserModeLinux-HOWTO.txt: fix a typo
UserModeLinux-HOWTO.txt: remove ^H characters
um: we need sys/user.h only on i386
um: merge delay_{32,64}.c
um: distribute exports to where exported stuff is defined
um: kill system-um.h
um: generic ftrace.h will do...
um: segment.h is x86-only and needed only there
um: asm/pda.h is not needed anymore
um: hw_irq.h can go generic as well
um: switch to generic-y
um: clean Kconfig up a bit
um: a couple of missing dependencies...
um: kill useless argument of free_chan() and free_one_chan()
um: unify ptrace_user.h
um: unify KSTK_...
um: fix gcov build breakage
...
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/Kconfig | 6 | ||||
-rw-r--r-- | drivers/char/hw_random/Kconfig | 15 | ||||
-rw-r--r-- | drivers/char/ttyprintk.c | 2 |
3 files changed, 19 insertions, 4 deletions
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index 423fd56bf61..43643033a3a 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig | |||
@@ -298,7 +298,7 @@ if RTC_LIB=n | |||
298 | config RTC | 298 | config RTC |
299 | tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)" | 299 | tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)" |
300 | depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV \ | 300 | depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV \ |
301 | && !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN | 301 | && !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN && !UML |
302 | ---help--- | 302 | ---help--- |
303 | If you say Y here and create a character special file /dev/rtc with | 303 | If you say Y here and create a character special file /dev/rtc with |
304 | major number 10 and minor number 135 using mknod ("man mknod"), you | 304 | major number 10 and minor number 135 using mknod ("man mknod"), you |
@@ -346,7 +346,7 @@ config JS_RTC | |||
346 | 346 | ||
347 | config GEN_RTC | 347 | config GEN_RTC |
348 | tristate "Generic /dev/rtc emulation" | 348 | tristate "Generic /dev/rtc emulation" |
349 | depends on RTC!=y && !IA64 && !ARM && !M32R && !MIPS && !SPARC && !FRV && !S390 && !SUPERH && !AVR32 && !BLACKFIN | 349 | depends on RTC!=y && !IA64 && !ARM && !M32R && !MIPS && !SPARC && !FRV && !S390 && !SUPERH && !AVR32 && !BLACKFIN && !UML |
350 | ---help--- | 350 | ---help--- |
351 | If you say Y here and create a character special file /dev/rtc with | 351 | If you say Y here and create a character special file /dev/rtc with |
352 | major number 10 and minor number 135 using mknod ("man mknod"), you | 352 | major number 10 and minor number 135 using mknod ("man mknod"), you |
@@ -490,7 +490,7 @@ config SCx200_GPIO | |||
490 | 490 | ||
491 | config PC8736x_GPIO | 491 | config PC8736x_GPIO |
492 | tristate "NatSemi PC8736x GPIO Support" | 492 | tristate "NatSemi PC8736x GPIO Support" |
493 | depends on X86_32 | 493 | depends on X86_32 && !UML |
494 | default SCx200_GPIO # mostly N | 494 | default SCx200_GPIO # mostly N |
495 | select NSC_GPIO # needed for support routines | 495 | select NSC_GPIO # needed for support routines |
496 | help | 496 | help |
diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index e0135873ba9..0689bf6b018 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig | |||
@@ -235,3 +235,18 @@ config HW_RANDOM_PPC4XX | |||
235 | module will be called ppc4xx-rng. | 235 | module will be called ppc4xx-rng. |
236 | 236 | ||
237 | If unsure, say N. | 237 | If unsure, say N. |
238 | |||
239 | config UML_RANDOM | ||
240 | depends on UML | ||
241 | tristate "Hardware random number generator" | ||
242 | help | ||
243 | This option enables UML's "hardware" random number generator. It | ||
244 | attaches itself to the host's /dev/random, supplying as much entropy | ||
245 | as the host has, rather than the small amount the UML gets from its | ||
246 | own drivers. It registers itself as a standard hardware random number | ||
247 | generator, major 10, minor 183, and the canonical device name is | ||
248 | /dev/hwrng. | ||
249 | The way to make use of this is to install the rng-tools package | ||
250 | (check your distro, or download from | ||
251 | http://sourceforge.net/projects/gkernel/). rngd periodically reads | ||
252 | /dev/hwrng and injects the entropy into /dev/random. | ||
diff --git a/drivers/char/ttyprintk.c b/drivers/char/ttyprintk.c index a1f68af4ccf..f2286151190 100644 --- a/drivers/char/ttyprintk.c +++ b/drivers/char/ttyprintk.c | |||
@@ -170,7 +170,7 @@ static const struct tty_operations ttyprintk_ops = { | |||
170 | .ioctl = tpk_ioctl, | 170 | .ioctl = tpk_ioctl, |
171 | }; | 171 | }; |
172 | 172 | ||
173 | struct tty_port_operations null_ops = { }; | 173 | static struct tty_port_operations null_ops = { }; |
174 | 174 | ||
175 | static struct tty_driver *ttyprintk_driver; | 175 | static struct tty_driver *ttyprintk_driver; |
176 | 176 | ||