Modified Intel graphics driver(i915.ko), still old driver is loading on boot
<p>I have added some prints in my intel graphics driver (i915) code. And after building it, I replaced the default driver i915.ko in <strong>/lib/modules/4.2.0-16-generic/kernel/drivers/gpu/drm/i915/</strong> with the new one. After system reboot I can see this driver is loaded properly but dmesg has no prints which I added in the driver code. It seems it is loading the old driver from somewhere else.
Here are some prints which I have added in the driver code to verify that the modified driver is loaded.</p>

<pre><code>static int __init i915_init(void)
{
    printk("Inside i915_init ");
    driver.num_ioctls = i915_max_ioctl;

    printk("Inside i915_init ");
#if defined(CONFIG_DRM_I915_KMS)
    printk("Inside i915_init ");
    if (i915.modeset != 0)
        driver.driver_features |= DRIVER_MODESET;
    printk("Inside i915_init ");
#endif
    printk("Inside i915_init ");
    if (i915.modeset == 1)
        driver.driver_features |= DRIVER_MODESET;

    printk("Inside i915_init ");
#ifdef CONFIG_VGA_CONSOLE
    printk("Inside i915_init ");
    if (vgacon_text_force() &amp;&amp; i915.modeset == -1)
        driver.driver_features &amp;= ~DRIVER_MODESET;
#endif
    printk("Inside i915_init ");

    if (!(driver.driver_features &amp; DRIVER_MODESET)) {
        driver.get_vblank_timestamp = NULL;
        /* Silently fail loading to not upset userspace. */
        DRM_DEBUG_DRIVER("KMS and UMS disabled.\n");
        return 0;
    }

    printk("Inside i915_init ");
    if (i915.nuclear_pageflip)
        driver.driver_features |= DRIVER_ATOMIC;

    printk("Inside i915_init ");
    return drm_pci_init(&amp;driver, &amp;i915_pci_driver);
}
</code></pre>