Hi,
I am trying to call *probe* function in RTDM device driver. However, I
could not make it, and also fail to find suitable source. It will be very
helpful if someone let me know some good source for it.
What I have been tried is, I use “platform_driver_register” function to
load "platform_driver" structure as bellows:
static int rt_probe(struct platform_device *pdev)
{
int res;
rtdm_printk( "%s %d\n",__func__,__LINE__);
res = rtdm_dev_register(&device):
return res:
}
static struct platform_driver rt_id_table[] = {
{"test",},
{},
};
static struct platform_driver pwm_driver = {
.probe = rt_probe,
.remove = rt_remove,
.id_table = rt_id_table,
.driver = {
.name = “DRIVER_NAME",
.owner = THIS_MODULE,
},
};
int __init rt_pwm_init(void)
{
rtdm_printk( "%s %d\n",__func__,__LINE__);
return platform_driver_register(&pwm_driver);
}
module_init(rt_pwm_init);
I hope above code is able to call *rt_probe* method, but it only calls
“rt_pwm_init”, nothing else, without any messages.
I use Xenomai 2.6, on “cdsteinkuehler” kernel (
https://github.com/cdsteinkuehler/linux-dev) on Beaglebone.
Thank you for reading this.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai