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
..
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
ivtv-alsa-main.c
ivtv-alsa-mixer.c
ivtv-alsa-mixer.h
ivtv-alsa-pcm.c
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
ivtv-fileops.h
ivtv-firmware.c
ivtv-firmware.h
ivtv-gpio.c
ivtv-gpio.h
ivtv-i2c.c
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
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
ivtv-udma.c
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