Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1471569
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] clocksource/drivers/atmel-pit: Fix compilation error |
| Date | 2016-08-29 08:50 +0200 |
| Message-ID | <sboym-3Tx-1@gated-at.bofh.it> (permalink) |
| References | <sbmGd-2Kg-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The previous fix introduced a check against the ret variable which
is not defined, hence producing a compilation error:
linux/drivers/clocksource/timer-atmel-pit.c: In function ‘at91sam926x_pit_dt_init’:
linux/drivers/clocksource/timer-atmel-pit.c:264:2: error: ‘ret’ undeclared (first use in this function)
ret = clk_prepare_enable(data->mck);
^
linux/drivers/clocksource/timer-atmel-pit.c:264:2: note: each undeclared identifier is reported only once for each function it appears in
Add the missing the variable 'ret'.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/clocksource/timer-atmel-pit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c
index 3494bc5..7f0f5b2 100644
--- a/drivers/clocksource/timer-atmel-pit.c
+++ b/drivers/clocksource/timer-atmel-pit.c
@@ -240,6 +240,7 @@ static int __init at91sam926x_pit_common_init(struct pit_data *data)
static int __init at91sam926x_pit_dt_init(struct device_node *node)
{
struct pit_data *data;
+ int ret;
data = kzalloc(sizeof(*data), GFP_KERNEL);
if (!data)
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Build error in timer-atmel-pit.c Brent Taylor <motobud@gmail.com> - 2016-08-29 06:50 +0200
[PATCH] clocksource/drivers/atmel-pit: Fix compilation error Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-08-29 08:50 +0200
Re: [PATCH] clocksource/drivers/atmel-pit: Fix compilation error Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-08-29 09:00 +0200
[tip:timers/urgent] clocksource/drivers/atmel-pit: Fix compilation error tip-bot for Daniel Lezcano <tipbot@zytor.com> - 2016-08-29 10:10 +0200
csiph-web