ieee1394: dv1394: move deprecation message from module init to file open

On many Linux installations, the dv1394 driver will be auto-loaded
whenever an AV/C device (e.g. camcorder or audio device) is plugged in.
An irritating message would then appear in the kernel log.

Defer this message to until a dv1394 character device file is actually
used by a program. Also include the program name in the message and
update the message slightly.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

+4 -4
+4 -4
drivers/ieee1394/dv1394.c
··· 1823 1823 1824 1824 #endif 1825 1825 1826 + printk(KERN_INFO "%s: NOTE, the dv1394 interface is unsupported " 1827 + "and will not be available in the new firewire driver stack. " 1828 + "Try libraw1394 based programs instead.\n", current->comm); 1829 + 1826 1830 return 0; 1827 1831 } 1828 1832 ··· 2570 2566 static int __init dv1394_init_module(void) 2571 2567 { 2572 2568 int ret; 2573 - 2574 - printk(KERN_WARNING 2575 - "NOTE: The dv1394 driver is unsupported and may be removed in a " 2576 - "future Linux release. Use raw1394 instead.\n"); 2577 2569 2578 2570 cdev_init(&dv1394_cdev, &dv1394_fops); 2579 2571 dv1394_cdev.owner = THIS_MODULE;