Message ID | 1411005230-2227-3-git-send-email-rui.zhang@intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Zhang Rui |
Headers | show |
On Thursday, September 18, 2014 09:53:33 AM Zhang Rui wrote: > Signed-off-by: Zhang Rui <rui.zhang@intel.com> > --- > drivers/acpi/acpi_platform.c | 1 + > include/linux/acpi.h | 7 +++++++ > 2 files changed, 8 insertions(+) > > diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c > index 2bf9082..a3c89a1 100644 > --- a/drivers/acpi/acpi_platform.c > +++ b/drivers/acpi/acpi_platform.c > @@ -113,3 +113,4 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev) > kfree(resources); > return pdev; > } > +EXPORT_SYMBOL_GPL(acpi_create_platform_device); > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > index 807cbc4..3dd743d 100644 > --- a/include/linux/acpi.h > +++ b/include/linux/acpi.h > @@ -432,6 +432,7 @@ static inline bool acpi_driver_match_device(struct device *dev, > int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); > int acpi_device_modalias(struct device *, char *, int); > > +struct platform_device *acpi_create_platform_device(struct acpi_device *); But then please drop the header from internal.h. > #define ACPI_PTR(_ptr) (_ptr) > > #else /* !CONFIG_ACPI */ > @@ -523,6 +524,12 @@ static inline int acpi_device_modalias(struct device *dev, > return -ENODEV; > } > > +static inline struct platform_device *acpi_create_platform_device( > + struct acpi_device *) > +{ > + return NULL; > +} > + > #define ACPI_PTR(_ptr) (NULL) > > #endif /* !CONFIG_ACPI */ >
diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index 2bf9082..a3c89a1 100644 --- a/drivers/acpi/acpi_platform.c +++ b/drivers/acpi/acpi_platform.c @@ -113,3 +113,4 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev) kfree(resources); return pdev; } +EXPORT_SYMBOL_GPL(acpi_create_platform_device); diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 807cbc4..3dd743d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -432,6 +432,7 @@ static inline bool acpi_driver_match_device(struct device *dev, int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); int acpi_device_modalias(struct device *, char *, int); +struct platform_device *acpi_create_platform_device(struct acpi_device *); #define ACPI_PTR(_ptr) (_ptr) #else /* !CONFIG_ACPI */ @@ -523,6 +524,12 @@ static inline int acpi_device_modalias(struct device *dev, return -ENODEV; } +static inline struct platform_device *acpi_create_platform_device( + struct acpi_device *) +{ + return NULL; +} + #define ACPI_PTR(_ptr) (NULL) #endif /* !CONFIG_ACPI */
Signed-off-by: Zhang Rui <rui.zhang@intel.com> --- drivers/acpi/acpi_platform.c | 1 + include/linux/acpi.h | 7 +++++++ 2 files changed, 8 insertions(+)