Re: [PATCH v3 1/9] mtd: nand: davinci: fix driver registration

2013-12-17 Thread Brian Norris
On Tue, Dec 17, 2013 at 2:21 AM, ivan.khoronzhuk wrote: > On 12/17/2013 11:24 AM, Brian Norris wrote: >> On Thu, Dec 05, 2013 at 07:25:49PM +0200, Ivan Khoronzhuk wrote: >>> --- a/drivers/mtd/nand/davinci_nand.c >>> +++ b/drivers/mtd/nand/davinci_nand.c >>> @@ -877,6 +877,7 @@ static int __exit

Re: [PATCH v3 1/9] mtd: nand: davinci: fix driver registration

2013-12-17 Thread ivan.khoronzhuk
On 12/17/2013 11:24 AM, Brian Norris wrote: > On Thu, Dec 05, 2013 at 07:25:49PM +0200, Ivan Khoronzhuk wrote: >> --- a/drivers/mtd/nand/davinci_nand.c >> +++ b/drivers/mtd/nand/davinci_nand.c >> @@ -877,6 +877,7 @@ static int __exit nand_davinci_remove(struct >> platform_device *pdev) >> } >>

Re: [PATCH v3 1/9] mtd: nand: davinci: fix driver registration

2013-12-17 Thread Brian Norris
On Thu, Dec 05, 2013 at 07:25:49PM +0200, Ivan Khoronzhuk wrote: > --- a/drivers/mtd/nand/davinci_nand.c > +++ b/drivers/mtd/nand/davinci_nand.c > @@ -877,6 +877,7 @@ static int __exit nand_davinci_remove(struct > platform_device *pdev) > } > > static struct platform_driver

Re: [PATCH v3 1/9] mtd: nand: davinci: fix driver registration

2013-12-17 Thread Brian Norris
On Thu, Dec 05, 2013 at 07:25:49PM +0200, Ivan Khoronzhuk wrote: --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -877,6 +877,7 @@ static int __exit nand_davinci_remove(struct platform_device *pdev) } static struct platform_driver nand_davinci_driver = {

Re: [PATCH v3 1/9] mtd: nand: davinci: fix driver registration

2013-12-17 Thread ivan.khoronzhuk
On 12/17/2013 11:24 AM, Brian Norris wrote: On Thu, Dec 05, 2013 at 07:25:49PM +0200, Ivan Khoronzhuk wrote: --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -877,6 +877,7 @@ static int __exit nand_davinci_remove(struct platform_device *pdev) } static

Re: [PATCH v3 1/9] mtd: nand: davinci: fix driver registration

2013-12-17 Thread Brian Norris
On Tue, Dec 17, 2013 at 2:21 AM, ivan.khoronzhuk ivan.khoronz...@ti.com wrote: On 12/17/2013 11:24 AM, Brian Norris wrote: On Thu, Dec 05, 2013 at 07:25:49PM +0200, Ivan Khoronzhuk wrote: --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -877,6 +877,7 @@ static

[PATCH v3 1/9] mtd: nand: davinci: fix driver registration

2013-12-05 Thread Ivan Khoronzhuk
When kernel is booted using DT, there is no guarantee that Davinci NAND device has been created already at the time when driver init function is executed. Therefore, platform_driver_probe() can't be used because this may result the Davinci NAND driver will never be probed. The driver probing has

[PATCH v3 1/9] mtd: nand: davinci: fix driver registration

2013-12-05 Thread Ivan Khoronzhuk
When kernel is booted using DT, there is no guarantee that Davinci NAND device has been created already at the time when driver init function is executed. Therefore, platform_driver_probe() can't be used because this may result the Davinci NAND driver will never be probed. The driver probing has