Revision 6babfc6e6fab068018c36e8f6605184b8c0b349d authored by Jiasheng Jiang on 08 March 2022, 06:40:07 UTC, committed by David S. Miller on 09 March 2022, 12:12:46 UTC
As the potential failure of the clk_enable(), it should be better to check it and return error if fails. Fixes: 8a2c9a5ab4b9 ("net: ethernet: ti: cpts: rework initialization/deinitialization") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 030141b
display_timing.c
// SPDX-License-Identifier: GPL-2.0-only
/*
* generic display timing functions
*
* Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix
*/
#include <linux/export.h>
#include <linux/slab.h>
#include <video/display_timing.h>
void display_timings_release(struct display_timings *disp)
{
if (disp->timings) {
unsigned int i;
for (i = 0; i < disp->num_timings; i++)
kfree(disp->timings[i]);
kfree(disp->timings);
}
kfree(disp);
}
EXPORT_SYMBOL_GPL(display_timings_release);
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...