| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2016 Free Electrons |
|---|
| 3 | 4 | * Copyright (C) 2016 NextThing Co |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or |
|---|
| 8 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 9 | | - * published by the Free Software Foundation; either version 2 of |
|---|
| 10 | | - * the License, or (at your option) any later version. |
|---|
| 11 | 7 | */ |
|---|
| 12 | 8 | |
|---|
| 13 | 9 | #include <linux/clk-provider.h> |
|---|
| 10 | +#include <linux/io.h> |
|---|
| 14 | 11 | |
|---|
| 15 | 12 | #include "sun4i_hdmi.h" |
|---|
| 16 | 13 | |
|---|
| .. | .. |
|---|
| 35 | 32 | { |
|---|
| 36 | 33 | unsigned long best_rate = 0; |
|---|
| 37 | 34 | u8 best_m = 0, m; |
|---|
| 38 | | - bool is_double; |
|---|
| 35 | + bool is_double = false; |
|---|
| 39 | 36 | |
|---|
| 40 | 37 | for (m = div_offset ?: 1; m < (16 + div_offset); m++) { |
|---|
| 41 | 38 | u8 d; |
|---|