2016-12-15 15:24:55

by Loic Pallardy

[permalink] [raw]
Subject: [PATCH 1/1] mailbox: sti: add MODULE_DEVICE_TABLE for module autoload

Signed-off-by: Loic Pallardy <[email protected]>
---
drivers/mailbox/mailbox-sti.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/mailbox/mailbox-sti.c b/drivers/mailbox/mailbox-sti.c
index a334db5..41bcd33 100644
--- a/drivers/mailbox/mailbox-sti.c
+++ b/drivers/mailbox/mailbox-sti.c
@@ -403,6 +403,7 @@ static struct mbox_chan *sti_mbox_xlate(struct mbox_controller *mbox,
},
{ }
};
+MODULE_DEVICE_TABLE(of, sti_mailbox_match);

static int sti_mbox_probe(struct platform_device *pdev)
{
--
1.9.1


2016-12-19 12:24:41

by Lee Jones

[permalink] [raw]
Subject: Re: [PATCH 1/1] mailbox: sti: add MODULE_DEVICE_TABLE for module autoload

On Thu, 15 Dec 2016, Loic Pallardy wrote:

> Signed-off-by: Loic Pallardy <[email protected]>
> ---
> drivers/mailbox/mailbox-sti.c | 1 +
> 1 file changed, 1 insertion(+)

Acked-by: Lee Jones <[email protected]>

> diff --git a/drivers/mailbox/mailbox-sti.c b/drivers/mailbox/mailbox-sti.c
> index a334db5..41bcd33 100644
> --- a/drivers/mailbox/mailbox-sti.c
> +++ b/drivers/mailbox/mailbox-sti.c
> @@ -403,6 +403,7 @@ static struct mbox_chan *sti_mbox_xlate(struct mbox_controller *mbox,
> },
> { }
> };
> +MODULE_DEVICE_TABLE(of, sti_mailbox_match);
>
> static int sti_mbox_probe(struct platform_device *pdev)
> {

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog