---
name: "platform_create_bundle"
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_create_bundle"
---

# platform\_create\_bundle(9)

register driver and create corresponding device

## NAME

platform\_create\_bundle - register driver and create corresponding device

## SYNOPSIS

**struct platform\_device \* platform\_create\_bundle(struct platform\_driver \*** *driver***, int (\****probe***) (struct platform\_device \*), struct resource \*** *res***, unsigned int** *n\_res***, const void \*** *data***, size\_t** *size***);**

## ARGUMENTS

*driver*

platform driver structure

*probe*

the driver probe routine, probably from an \_\_init section

*res*

set of resources that needs to be allocated for the device

*n\_res*

number of resources

*data*

platform specific data for this platform device

*size*

size of platform specific data

## DESCRIPTION

Use this in legacy-style modules that probe hardware directly and register a single platform device and corresponding platform driver.

Returns struct platform\_device pointer on success, or **ERR\_PTR** on error.

## COPYRIGHT
