From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] xgene-ahbc-iommu: Add support for APM X-Gene SoC AHBC IOMMU driver.
Date: Mon, 15 Dec 2014 22:29:20 +0100 [thread overview]
Message-ID: <6441239.m4vUuhaUcX@wuerfel> (raw)
In-Reply-To: <1418662523-8458-2-git-send-email-stripathi@apm.com>
On Monday 15 December 2014 22:25:21 Suman Tripathi wrote:
> + return 0;
> +}
> +
> +static struct of_device_id xgene_ahbc_mmu_of_match[] = {
> + { .compatible = "apm,xgene-ahbc-iommu"},
> + { },
> +};
> +MODULE_DEVICE_TABLE(of, xgene_ahbc_mmu_of_match);
> +
> +static struct platform_driver xgene_ahbc_mmu_driver = {
> + .probe = xgene_ahbc_mmu_probe,
> + .remove = xgene_ahbc_mmu_remove,
> + .driver = {
> + .owner = THIS_MODULE,
> + .name = "xgene-ahbc",
> + .of_match_table = of_match_ptr(xgene_ahbc_mmu_of_match),
> + },
> +};
> +
> +static int xgene_ahbc_mmu_init(void)
> +{
> + return platform_driver_register(&xgene_ahbc_mmu_driver);
> +}
> +subsys_initcall(xgene_ahbc_mmu_init);
> +
> +static void __exit xgene_ahbc_mmu_exit(void)
> +{
> + platform_driver_unregister(&xgene_ahbc_mmu_driver);
> +}
> +module_exit(xgene_ahbc_mmu_exit);
>
This should use the newly added of_iommu infrastructure that we
added for 3.19. Otherwise you are just duplicating common code.
Arnd
next prev parent reply other threads:[~2014-12-15 21:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1418662523-8458-1-git-send-email-stripathi@apm.com>
2014-12-15 19:38 ` [PATCH 0/3] Add support for APM X-Gene SoC AHBC IOMMU driver Don Dutile
2014-12-15 19:54 ` Don Dutile
[not found] ` <CAOHikRB0eBnPnE+QWdmWunOMFHJOLDqU6o2ByBruQ3KC+1-XmA@mail.gmail.com>
2014-12-15 20:27 ` Joerg Roedel
[not found] ` <1418662523-8458-2-git-send-email-stripathi@apm.com>
2014-12-15 21:29 ` Arnd Bergmann [this message]
[not found] ` <1418662523-8458-4-git-send-email-stripathi@apm.com>
2014-12-15 21:30 ` [PATCH 3/3] Documentation: dt-bindings: Add the binding info for APM X-Gene " Arnd Bergmann
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=6441239.m4vUuhaUcX@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox