---
name: "platform_device_add"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/platform_device_add"
---

# platform\_device\_add(9)

add a platform device to device hierarchy

## NAME

platform\_device\_add - add a platform device to device hierarchy

## SYNOPSIS

**int platform\_device\_add(struct platform\_device \*** *pdev***);**

## ARGUMENTS

*pdev*

platform device we're adding

## DESCRIPTION

This is part 2 of **platform\_device\_register**, though may be called separately \_iff\_ pdev was allocated by **platform\_device\_alloc**.

## COPYRIGHT
