---
name: "ata_platform_remove_one"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_platform_remove_one"
---

# ata\_platform\_remove\_one(9)

Platform layer callback for device removal

## NAME

ata\_platform\_remove\_one - Platform layer callback for device removal

## SYNOPSIS

**int ata\_platform\_remove\_one(struct platform\_device \*** *pdev***);**

## ARGUMENTS

*pdev*

Platform device that was removed

## DESCRIPTION

Platform layer indicates to libata via this hook that hot-unplug or module unload event has occurred. Detach all ports. Resource release is handled via devres.

LOCKING: Inherited from platform layer (may sleep).

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
