Revision 0a9e22715ee384cf2a714c28f24ce8881b9fd815 authored by Johan Hovold on 30 November 2016, 14:29:50 UTC, committed by David S. Miller on 02 December 2016, 15:42:45 UTC
Make sure to disable clocks before returning on late probe errors.

Fixes: 8387ee21f972 ("stmmac: dwmac-sti: turn setup callback into a
probe function")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 50ac64c
Raw File
omap-pcm.h
/*
 * omap-pcm.h - OMAP PCM driver
 *
 * Copyright (C) 2014 Texas Instruments, Inc.
 *
 * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */

#ifndef __OMAP_PCM_H__
#define __OMAP_PCM_H__

#if IS_ENABLED(CONFIG_SND_OMAP_SOC)
int omap_pcm_platform_register(struct device *dev);
#else
static inline int omap_pcm_platform_register(struct device *dev)
{
	return 0;
}
#endif /* CONFIG_SND_OMAP_SOC */

#endif /* __OMAP_PCM_H__ */
back to top