linux/drivers/media/pci/ivtv
Luis R. Rodriguez f5530d5af8 x86/mm/pat, drivers/media/ivtv: Move the PAT warning and replace WARN() with pr_warn()
On built-in kernels this warning will always splat, even if no ivtvfb
hardware is present, as this is part of the module init:

	if (WARN(pat_enabled(),
		 "ivtvfb needs PAT disabled, boot with nopat kernel parameter\n")) {

Fix that by shifting the PAT requirement check out under the code
that does the "quasi-probe" for the device.

This device driver relies on an existing driver to find its own devices,
it looks for that device driver and its own found devices, then uses
driver_for_each_device() to try to see if it can probe each of those
devices as a frambuffer device with ivtvfb_init_card().

We tuck the PAT requiremenet check then on the ivtvfb_init_card() call
making the check at least require an ivtv device present before
complaining.

Reported-by: Fengguang Wu <fengguang.wu@intel.com> [0-day test robot]
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: andy@silverblocksystems.net
Cc: benh@kernel.crashing.org
Cc: bp@suse.de
Cc: dan.j.williams@intel.com
Cc: dledford@redhat.com
Cc: jkosina@suse.cz
Cc: julia.lawall@lip6.fr
Cc: luto@amacapital.net
Cc: mchehab@osg.samsung.com
Link: http://lkml.kernel.org/r/1437167245-28273-3-git-send-email-mcgrof@do-not-panic.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-07-21 09:42:54 +02:00
..
ivtv-alsa-main.c [media] ivtv: embed video_device 2015-04-02 22:34:55 -03:00
ivtv-alsa-mixer.c
ivtv-alsa-mixer.h
ivtv-alsa-pcm.c [media] ivtv: embed video_device 2015-04-02 22:34:55 -03:00
ivtv-alsa-pcm.h
ivtv-alsa.h
ivtv-cards.c
ivtv-cards.h
ivtv-controls.c [media] v4l2: replace s_mbus_fmt by set_fmt in bridge drivers 2015-05-01 09:01:16 -03:00
ivtv-controls.h
ivtv-driver.c [media] ivtv: avoid going past input/audio array 2015-04-30 13:36:15 -03:00
ivtv-driver.h [media] ivtv: fix two smatch warnings 2015-06-05 11:26:36 -03:00
ivtv-fileops.c [media] ivtv: embed video_device 2015-04-02 22:34:55 -03:00
ivtv-fileops.h
ivtv-firmware.c [media] pci drivers: use %zu instead of %zd 2014-09-26 06:51:00 -03:00
ivtv-firmware.h
ivtv-gpio.c
ivtv-gpio.h
ivtv-i2c.c [media] rc-core: improve ir-kbd-i2c get_key functions 2014-07-23 20:05:56 -03:00
ivtv-i2c.h
ivtv-ioctl.c [media] ivtv: fix incorrect audio mode report in log_status 2015-05-30 11:35:25 -03:00
ivtv-ioctl.h
ivtv-irq.c [media] ivtv: embed video_device 2015-04-02 22:34:55 -03:00
ivtv-irq.h
ivtv-mailbox.c
ivtv-mailbox.h
ivtv-queue.c
ivtv-queue.h
ivtv-routing.c
ivtv-routing.h
ivtv-streams.c [media] ivtv: disable fbuf support if ivtvfb isn't loaded 2015-04-02 23:57:51 -03:00
ivtv-streams.h [media] ivtv: embed video_device 2015-04-02 22:34:55 -03:00
ivtv-udma.c mm: gup: use get_user_pages_unlocked 2015-02-11 17:06:05 -08:00
ivtv-udma.h
ivtv-vbi.c
ivtv-vbi.h
ivtv-version.h
ivtv-yuv.c
ivtv-yuv.h
ivtvfb.c x86/mm/pat, drivers/media/ivtv: Move the PAT warning and replace WARN() with pr_warn() 2015-07-21 09:42:54 +02:00
Kconfig x86/mm/pat, drivers/media/ivtv: Use arch_phys_wc_add() and require PAT disabled 2015-06-18 11:23:41 +02:00
Makefile