struct video_device *cx25821_vdev_init(struct cx25821_dev *dev,
                                       struct pci_dev *pci,
-                                      struct video_device *template,
+                                      const struct video_device *template,
                                       char *type)
 {
        struct video_device *vfd;
 
 int cx25821_video_register(struct cx25821_dev *dev)
 {
-       int err;
-       int i;
-
-       struct video_device cx25821_video_device = {
+       static const struct video_device cx25821_video_device = {
                .name = "cx25821-video",
                .fops = &video_fops,
                .minor = -1,
                .tvnorms = CX25821_NORMS,
                .current_norm = V4L2_STD_NTSC_M,
        };
+       int err;
+       int i;
 
        spin_lock_init(&dev->slock);
 
 
 extern void cx25821_videoioctl_unregister(struct cx25821_dev *dev);
 extern struct video_device *cx25821_vdev_init(struct cx25821_dev *dev,
                                              struct pci_dev *pci,
-                                             struct video_device *template,
+                                             const struct video_device *template,
                                              char *type);
 #endif