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
Raw File
diag_ftp.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
 *    DIAGNOSE X'2C4' instruction based SE/HMC FTP Services, useable on z/VM
 *
 *    Notice that all functions exported here are not reentrant.
 *    So usage should be exclusive, ensured by the caller (e.g. using a
 *    mutex).
 *
 *    Copyright IBM Corp. 2013
 *    Author(s): Ralf Hoppe (rhoppe@de.ibm.com)
 */

#ifndef __DIAG_FTP_H__
#define __DIAG_FTP_H__

#include "hmcdrv_ftp.h"

int diag_ftp_startup(void);
void diag_ftp_shutdown(void);
ssize_t diag_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize);

#endif	 /* __DIAG_FTP_H__ */
back to top