FreeBSD/sys/dev/drm2/radeon/r600.c
/**
 * r600_fini_microcode - drop the firmwares image references
 *
 * @rdev: radeon_device pointer
 *
 * Drop the pfp, me and rlc firmwares image references.
 * Called at driver shutdown.
 */
drop the firmwares image references
@rdev: radeon_device pointer

Drop the pfp, me and rlc firmwares image references.
Called at driver shutdown.
drop the firmwares image references @rdev : radeon_device pointer Drop the pfp me and rlc firmwares image references . Called at driver shutdown .
void r600_fini_microcode(struct radeon_device *rdev)
{
	if (rdev->pfp_fw != NULL) {
		firmware_put(rdev->pfp_fw, FIRMWARE_UNLOAD);
		rdev->pfp_fw = NULL;
	}
	if (rdev->me_fw != NULL) {
		firmware_put(rdev->me_fw, FIRMWARE_UNLOAD);
		rdev->me_fw = NULL;
	}
	if (rdev->rlc_fw != NULL) {
		firmware_put(rdev->rlc_fw, FIRMWARE_UNLOAD);
		rdev->rlc_fw = NULL;
	}
}
void r600_fini_microcode ( struct radeon_device * rdev ) { if ( rdev -> pfp_fw != NULL ) { firmware_put ( rdev -> pfp_fw , FIRMWARE_UNLOAD ) ; rdev -> pfp_fw = NULL ; } if ( rdev -> me_fw != NULL ) { firmware_put ( rdev -> me_fw , FIRMWARE_UNLOAD ) ; rdev -> me_fw = NULL ; } if ( rdev -> rlc_fw != NULL ) { firmware_put ( rdev -> rlc_fw , FIRMWARE_UNLOAD ) ; rdev -> rlc_fw = NULL ; } }
r600_fini_microcode - drop the firmwares image references
 @rdev: radeon_device pointer
r600_fini_microcode - drop the firmwares image references @rdev : radeon_device pointer