* [Xenomai] [PATCH] rtcan_flexcan: fix devtype_data initialization
@ 2013-11-28 8:41 Alexandre COFFIGNAL
2013-11-28 12:51 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Alexandre COFFIGNAL @ 2013-11-28 8:41 UTC (permalink / raw)
To: xenomai
|fix devtype_data initialization when using CONFIG_OF and dtb file
Signed-off-by: Alexandre COFFIGNAL <acoffignal@geral.com>
|---
ksrc/drivers/can/rtcan_flexcan.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ksrc/drivers/can/rtcan_flexcan.c b/ksrc/drivers/can/rtcan_flexcan.c
index e97cd92..8f0e8d1 100644
--- a/ksrc/drivers/can/rtcan_flexcan.c
+++ b/ksrc/drivers/can/rtcan_flexcan.c
@@ -1055,8 +1055,10 @@ static int flexcan_probe(struct platform_device *pdev)
devtype_data = (struct flexcan_devtype_data *)
pdev->id_entry->driver_data;
} else {
- err = -ENODEV;
- goto out_error;
+ if (!devtype_data){
+ err = -ENODEV;
+ goto out_error;
+ }
}
if (!clock_freq) {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [Xenomai] [PATCH] rtcan_flexcan: fix devtype_data initialization
2013-11-28 8:41 [Xenomai] [PATCH] rtcan_flexcan: fix devtype_data initialization Alexandre COFFIGNAL
@ 2013-11-28 12:51 ` Gilles Chanteperdrix
2013-11-28 12:55 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2013-11-28 12:51 UTC (permalink / raw)
To: Alexandre COFFIGNAL; +Cc: xenomai
On 11/28/2013 09:41 AM, Alexandre COFFIGNAL wrote:
> |fix devtype_data initialization when using CONFIG_OF and dtb file
>
> Signed-off-by: Alexandre COFFIGNAL <acoffignal@geral.com>
Patch does not apply.
>
> |---
> ksrc/drivers/can/rtcan_flexcan.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/ksrc/drivers/can/rtcan_flexcan.c b/ksrc/drivers/can/rtcan_flexcan.c
> index e97cd92..8f0e8d1 100644
> --- a/ksrc/drivers/can/rtcan_flexcan.c
> +++ b/ksrc/drivers/can/rtcan_flexcan.c
> @@ -1055,8 +1055,10 @@ static int flexcan_probe(struct platform_device *pdev)
> devtype_data = (struct flexcan_devtype_data *)
> pdev->id_entry->driver_data;
I guess due to the carriage return introduced by your MUA here ^. The
simplest solution to send correctly formatted mails is to use git
format-patch and git send-email.
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai] [PATCH] rtcan_flexcan: fix devtype_data initialization
2013-11-28 12:51 ` Gilles Chanteperdrix
@ 2013-11-28 12:55 ` Gilles Chanteperdrix
0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2013-11-28 12:55 UTC (permalink / raw)
To: Alexandre COFFIGNAL; +Cc: xenomai
On 11/28/2013 01:51 PM, Gilles Chanteperdrix wrote:
> On 11/28/2013 09:41 AM, Alexandre COFFIGNAL wrote:
>> |fix devtype_data initialization when using CONFIG_OF and dtb file
>>
>> Signed-off-by: Alexandre COFFIGNAL <acoffignal@geral.com>
>
> Patch does not apply.
>
>>
>> |---
>> ksrc/drivers/can/rtcan_flexcan.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/ksrc/drivers/can/rtcan_flexcan.c b/ksrc/drivers/can/rtcan_flexcan.c
>> index e97cd92..8f0e8d1 100644
>> --- a/ksrc/drivers/can/rtcan_flexcan.c
>> +++ b/ksrc/drivers/can/rtcan_flexcan.c
>> @@ -1055,8 +1055,10 @@ static int flexcan_probe(struct platform_device *pdev)
>> devtype_data = (struct flexcan_devtype_data *)
>> pdev->id_entry->driver_data;
>
> I guess due to the carriage return introduced by your MUA here ^. The
> simplest solution to send correctly formatted mails is to use git
> format-patch and git send-email.
>
No, the carriage return is here in the original sources. So, I do not
know why your patch does not apply, but still, if you use git to
generate and send the patch, it should work.
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Xenomai] [PATCH] rtcan_flexcan: fix devtype_data initialization
@ 2013-11-28 14:27 Alexandre Coffignal
2013-11-28 19:52 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Alexandre Coffignal @ 2013-11-28 14:27 UTC (permalink / raw)
To: xenomai
fix devtype_data initialization when using CONFIG_OF and dtb file
---
ksrc/drivers/can/rtcan_flexcan.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ksrc/drivers/can/rtcan_flexcan.c b/ksrc/drivers/can/rtcan_flexcan.c
index e97cd92..8f0e8d1 100644
--- a/ksrc/drivers/can/rtcan_flexcan.c
+++ b/ksrc/drivers/can/rtcan_flexcan.c
@@ -1055,8 +1055,10 @@ static int flexcan_probe(struct platform_device *pdev)
devtype_data = (struct flexcan_devtype_data *)
pdev->id_entry->driver_data;
} else {
- err = -ENODEV;
- goto out_error;
+ if (!devtype_data){
+ err = -ENODEV;
+ goto out_error;
+ }
}
if (!clock_freq) {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-11-28 19:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28 8:41 [Xenomai] [PATCH] rtcan_flexcan: fix devtype_data initialization Alexandre COFFIGNAL
2013-11-28 12:51 ` Gilles Chanteperdrix
2013-11-28 12:55 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2013-11-28 14:27 Alexandre Coffignal
2013-11-28 19:52 ` Gilles Chanteperdrix
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.