From: Varka Bhadram <varkabhadram@gmail.com>
To: Hauke Mehrtens <hauke@hauke-m.de>,
linville@tuxdriver.com, linux-wireless@vger.kernel.org
Cc: zajec5@gmail.com, arend@broadcom.com,
linux-arm-kernel@lists.infradead.org, arnd@arndb.de,
devicetree@vger.kernel.org
Subject: Re: [PATCH v3 1/2] bcma: register bcma as device tree driver
Date: Sat, 20 Sep 2014 21:10:08 +0530 [thread overview]
Message-ID: <541D9FD8.4000404@gmail.com> (raw)
In-Reply-To: <1411218125-32670-1-git-send-email-hauke@hauke-m.de>
On Saturday 20 September 2014 06:32 PM, Hauke Mehrtens wrote:
> This driver is used by the bcm53xx ARM SoC code. Now it is possible to
> give the address of the chipcommon core in device tree and bcma will
> search for all the other cores.
(...)
> +
> +static const struct of_device_id bcma_host_soc_of_match[] = {
> + { .compatible = "brcm,bus-axi", },
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, bcma_host_soc_of_match);
> +
> +static struct platform_driver bcma_host_soc_driver = {
> + .driver = {
> + .name = "bcma-host-soc",
> + .owner = THIS_MODULE,
This field updated automatically...
> + .of_match_table = bcma_host_soc_of_match,
> + },
> + .probe = bcma_host_soc_probe,
> + .remove = bcma_host_soc_remove,
> +};
> +
> +int __init bcma_host_soc_register_driver(void)
> +{
> + return platform_driver_register(&bcma_host_soc_driver);
> +}
> +
> +void __exit bcma_host_soc_unregister_driver(void)
> +{
> + platform_driver_unregister(&bcma_host_soc_driver);
> +}
> +#endif /* CONFIG_OF */
Why dont you use module_platform_driver(...)...?
--
Regards,
Varka Bhadram.
WARNING: multiple messages have this Message-ID (diff)
From: varkabhadram@gmail.com (Varka Bhadram)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/2] bcma: register bcma as device tree driver
Date: Sat, 20 Sep 2014 21:10:08 +0530 [thread overview]
Message-ID: <541D9FD8.4000404@gmail.com> (raw)
In-Reply-To: <1411218125-32670-1-git-send-email-hauke@hauke-m.de>
On Saturday 20 September 2014 06:32 PM, Hauke Mehrtens wrote:
> This driver is used by the bcm53xx ARM SoC code. Now it is possible to
> give the address of the chipcommon core in device tree and bcma will
> search for all the other cores.
(...)
> +
> +static const struct of_device_id bcma_host_soc_of_match[] = {
> + { .compatible = "brcm,bus-axi", },
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, bcma_host_soc_of_match);
> +
> +static struct platform_driver bcma_host_soc_driver = {
> + .driver = {
> + .name = "bcma-host-soc",
> + .owner = THIS_MODULE,
This field updated automatically...
> + .of_match_table = bcma_host_soc_of_match,
> + },
> + .probe = bcma_host_soc_probe,
> + .remove = bcma_host_soc_remove,
> +};
> +
> +int __init bcma_host_soc_register_driver(void)
> +{
> + return platform_driver_register(&bcma_host_soc_driver);
> +}
> +
> +void __exit bcma_host_soc_unregister_driver(void)
> +{
> + platform_driver_unregister(&bcma_host_soc_driver);
> +}
> +#endif /* CONFIG_OF */
Why dont you use module_platform_driver(...)...?
--
Regards,
Varka Bhadram.
WARNING: multiple messages have this Message-ID (diff)
From: Varka Bhadram <varkabhadram-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Hauke Mehrtens <hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>,
linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
arend-dY08KVG/lbpWk0Htik3J/w@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
arnd-r2nGTMty4D4@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v3 1/2] bcma: register bcma as device tree driver
Date: Sat, 20 Sep 2014 21:10:08 +0530 [thread overview]
Message-ID: <541D9FD8.4000404@gmail.com> (raw)
In-Reply-To: <1411218125-32670-1-git-send-email-hauke-5/S+JYg5SzeELgA04lAiVw@public.gmane.org>
On Saturday 20 September 2014 06:32 PM, Hauke Mehrtens wrote:
> This driver is used by the bcm53xx ARM SoC code. Now it is possible to
> give the address of the chipcommon core in device tree and bcma will
> search for all the other cores.
(...)
> +
> +static const struct of_device_id bcma_host_soc_of_match[] = {
> + { .compatible = "brcm,bus-axi", },
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, bcma_host_soc_of_match);
> +
> +static struct platform_driver bcma_host_soc_driver = {
> + .driver = {
> + .name = "bcma-host-soc",
> + .owner = THIS_MODULE,
This field updated automatically...
> + .of_match_table = bcma_host_soc_of_match,
> + },
> + .probe = bcma_host_soc_probe,
> + .remove = bcma_host_soc_remove,
> +};
> +
> +int __init bcma_host_soc_register_driver(void)
> +{
> + return platform_driver_register(&bcma_host_soc_driver);
> +}
> +
> +void __exit bcma_host_soc_unregister_driver(void)
> +{
> + platform_driver_unregister(&bcma_host_soc_driver);
> +}
> +#endif /* CONFIG_OF */
Why dont you use module_platform_driver(...)...?
--
Regards,
Varka Bhadram.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-09-20 15:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-20 13:02 [PATCH v3 1/2] bcma: register bcma as device tree driver Hauke Mehrtens
2014-09-20 13:02 ` Hauke Mehrtens
2014-09-20 13:02 ` Hauke Mehrtens
2014-09-20 13:02 ` [PATCH v3 2/2] bcma: get IRQ numbers from dt Hauke Mehrtens
2014-09-20 13:02 ` Hauke Mehrtens
2014-09-20 13:02 ` Hauke Mehrtens
2014-09-20 13:20 ` [PATCH v3 1/2] bcma: register bcma as device tree driver Rafał Miłecki
2014-09-20 13:20 ` Rafał Miłecki
2014-09-20 13:20 ` Rafał Miłecki
2014-09-20 15:40 ` Varka Bhadram [this message]
2014-09-20 15:40 ` Varka Bhadram
2014-09-20 15:40 ` Varka Bhadram
2014-09-20 15:43 ` Hauke Mehrtens
2014-09-20 15:43 ` Hauke Mehrtens
2014-09-20 15:43 ` Hauke Mehrtens
2014-09-20 15:53 ` Varka Bhadram
2014-09-20 15:53 ` Varka Bhadram
2014-09-20 15:53 ` Varka Bhadram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=541D9FD8.4000404@gmail.com \
--to=varkabhadram@gmail.com \
--cc=arend@broadcom.com \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=hauke@hauke-m.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=zajec5@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.