mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-23 03:19:43 +09:00
ARM: tegra: remove vpr_configured() function
There is no justification for this function, especially in exported form. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
f35cb12511
commit
36e5f7ce1c
@ -11,7 +11,6 @@
|
|||||||
#if defined(CONFIG_TEGRA_GPU)
|
#if defined(CONFIG_TEGRA_GPU)
|
||||||
|
|
||||||
void config_gpu(void);
|
void config_gpu(void);
|
||||||
bool gpu_configured(void);
|
|
||||||
|
|
||||||
#else /* CONFIG_TEGRA_GPU */
|
#else /* CONFIG_TEGRA_GPU */
|
||||||
|
|
||||||
@ -19,11 +18,6 @@ static inline void config_gpu(void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool gpu_configured(void)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* CONFIG_TEGRA_GPU */
|
#endif /* CONFIG_TEGRA_GPU */
|
||||||
|
|
||||||
#if defined(CONFIG_OF_LIBFDT)
|
#if defined(CONFIG_OF_LIBFDT)
|
||||||
|
@ -41,18 +41,13 @@ void config_gpu(void)
|
|||||||
_configured = true;
|
_configured = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool vpr_configured(void)
|
|
||||||
{
|
|
||||||
return _configured;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(CONFIG_OF_LIBFDT)
|
#if defined(CONFIG_OF_LIBFDT)
|
||||||
|
|
||||||
int gpu_enable_node(void *blob, const char *gpupath)
|
int gpu_enable_node(void *blob, const char *gpupath)
|
||||||
{
|
{
|
||||||
int offset;
|
int offset;
|
||||||
|
|
||||||
if (vpr_configured()) {
|
if (_configured) {
|
||||||
offset = fdt_path_offset(blob, gpupath);
|
offset = fdt_path_offset(blob, gpupath);
|
||||||
if (offset > 0) {
|
if (offset > 0) {
|
||||||
fdt_status_okay(blob, offset);
|
fdt_status_okay(blob, offset);
|
||||||
|
Loading…
Reference in New Issue
Block a user