diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-04-26 16:45:54 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2018-04-26 16:45:54 +0200 |
commit | c7d0a03200c821bf6e3a721a68c53154056b4d4e (patch) | |
tree | 99f636e6178ca29b18b6fa93366d1d338753a58f | |
parent | a0a2d0501d37d52711d47ea6cafb010822b442fd (diff) | |
parent | 144345a4a8c3b497a3f60d3af9d6071a37660186 (diff) | |
download | linux-c7d0a03200c821bf6e3a721a68c53154056b4d4e.tar.bz2 |
Merge tag 'arm-soc/for-4.17/drivers-fixes' of https://github.com/Broadcom/stblinux into fixes
This pull request contains Broadcom SoCs drivers fixes, please pull the
following:
- Geert makes the Raspberry Pi firmwware return -ENOSYS (similar to
other subsystems) when CONFIG_RASPBERRYPI_FIRMWARE is off.
- Florian fixes an incorrect annotation in the Raspberry Pi power domain
driver, spotted by sparse
* tag 'arm-soc/for-4.17/drivers-fixes' of https://github.com/Broadcom/stblinux:
soc: bcm2835: Make !RASPBERRYPI_FIRMWARE dummies return failure
soc: bcm: raspberrypi-power: Fix use of __packed
-rw-r--r-- | drivers/soc/bcm/raspberrypi-power.c | 2 | ||||
-rw-r--r-- | include/soc/bcm2835/raspberrypi-firmware.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/bcm/raspberrypi-power.c b/drivers/soc/bcm/raspberrypi-power.c index fe96a8b956fb..f7ed1187518b 100644 --- a/drivers/soc/bcm/raspberrypi-power.c +++ b/drivers/soc/bcm/raspberrypi-power.c @@ -45,7 +45,7 @@ struct rpi_power_domains { struct rpi_power_domain_packet { u32 domain; u32 on; -} __packet; +}; /* * Asks the firmware to enable or disable power on a specific power diff --git a/include/soc/bcm2835/raspberrypi-firmware.h b/include/soc/bcm2835/raspberrypi-firmware.h index 50df5b28d2c9..8ee8991aa099 100644 --- a/include/soc/bcm2835/raspberrypi-firmware.h +++ b/include/soc/bcm2835/raspberrypi-firmware.h @@ -143,13 +143,13 @@ struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node); static inline int rpi_firmware_property(struct rpi_firmware *fw, u32 tag, void *data, size_t len) { - return 0; + return -ENOSYS; } static inline int rpi_firmware_property_list(struct rpi_firmware *fw, void *data, size_t tag_size) { - return 0; + return -ENOSYS; } static inline struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node) |