All of lore.kernel.org
 help / color / mirror / Atom feed
* UIO driver test
@ 2016-04-15  8:29 Gadre Nayan
  2016-04-15  8:45 ` anish singh
  2016-04-15 13:59 ` Greg KH
  0 siblings, 2 replies; 12+ messages in thread
From: Gadre Nayan @ 2016-04-15  8:29 UTC (permalink / raw)
  To: kernelnewbies

Dear all,

I am trying to test a dummy UIO driver to get timer interrupt events
in Userspace.

I register the UIO driver as a platform driver:

static struct platform_device *uio_dummy_device;

static struct device_driver uio_dummy_driver = {
        .name           = "uio_dummy",
        .bus            = &platform_bus_type,
        .probe          = uio_dummy_probe,
        .remove         = uio_dummy_remove,
        .shutdown       = uio_dummy_shutdown,
};

/*
 * Main initialization/remove routines
 */
static int __init uio_dummy_init(void)
{
        printk("uio_dummy_init( )\n" );
        uio_dummy_device = platform_device_register_simple("uio_dummy", -1,
                                                           NULL, 0);
        if (IS_ERR(uio_dummy_device))
                return PTR_ERR(uio_dummy_device);

        return driver_register(&uio_dummy_driver);
}

So after the driver_register() My probe should be called but it isn't.

Why is this happening.

Thanks
Nayan

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-04-16  5:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-15  8:29 UIO driver test Gadre Nayan
2016-04-15  8:45 ` anish singh
2016-04-15 10:01   ` Gadre Nayan
2016-04-15 13:59 ` Greg KH
2016-04-15 14:13   ` Gadre Nayan
2016-04-15 14:15     ` Gadre Nayan
2016-04-15 14:21       ` Greg KH
2016-04-16  1:33         ` Gadre Nayan
2016-04-16  1:37           ` Greg KH
2016-04-15 14:20     ` Greg KH
2016-04-15 17:36   ` Mandeep Sandhu
2016-04-16  5:13     ` Gadre Nayan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.