Re: [PATCH 4/4] mtd: denali_dt: Remove redundant use of of_match_ptr

Dinh Nguyen
2013-03-19T16:07:25Z

Hi Sachin,

On Mon, 2013-03-18 at 15:11 +0530, Sachin Kamat wrote:
> Since this driver is dt only and denali_nand_dt_ids is always
> compiled in, use of of_match_ptr() macro is not necessary.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> drivers/mtd/nand/denali_dt.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c
> index 067a505..9253024 100644
> --- a/drivers/mtd/nand/denali_dt.c
> +++ b/drivers/mtd/nand/denali_dt.c
> @@ -146,7 +146,7 @@ static struct platform_driver denali_dt_driver = {
> .driver = {
> .name = "denali-nand-dt",
> .owner = THIS_MODULE,
> - .of_match_table = of_match_ptr(denali_nand_dt_ids),
> + .of_match_table = denali_nand_dt_ids,
> },
> };
>

Reviewed-by: Dinh Nguyen <dinguyen@altera.com>

for all 4 patches.

Thanks,
Dinh