Reset controller fixes for v4.3

- added stubs to avoid build breakage in COMPILE_TEST
   configurations with RESET_CONTROLLER disabled
 - fixed missing spinlock initialization in ath79 driver
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJV5pPmAAoJEFDCiBxwnmDrKAQP/A26hQB2eDdubJjpqqjAms2j
 EpF0UsaCySG8JKAUa2YCldnxN36a6DKmXU82B3Gzyh8laC82ZG3KqHMIWIdzFDZ1
 HcfwUbRLqZxfsqwsRs1IFtHRLTf6ai5jvN0K2OZ/VXuohdRQXeL9Q16QaMLYnFpA
 Idru7P0mkFX+ra5AgCyUIC1spQmyu0genYWw3dBbBCgaC2WHHl0FIdV2v9I5Hdph
 47jFSkt5pw++z85bCeSsYzdIe4cg+Le/jvnKTrfWvfft0QLcEir9WDwPaKJ1Crnd
 x5dOH6jwAZqO6Sjk2xB5nzA16zuXMRUi+31TV9PvJm+C8ZCvYqIRxJC9IdSbZLRc
 bga4n1CDyU1p0wR3M7RTk2xilQ1rydoYGKiEnA0tz7NscrtJfWZASJiBsLYIn1iH
 BjB6LUzMtry2A0azudvxMPoVlDgLE+7RPnCaXjFvAAzETPb60LNavOk8wXHopFAG
 K/C5EwnKP+VvaueLvXMRT03VJmuYCjfpQ4QPcJKjXRK5ZK7L30eH0WV5INuoiMq+
 MJ9tCaP/PD6MmxNZiTkbY8CEI7yrYpD3/TJWA8OamDMFPRPgzU+mUaWYAk1q1Zdz
 vRNjcIMYA883jvVhUanVQ1q6+xmZutBNq/k45DIz80lqDnesNMd1CL+SZPOfmoDT
 Qtm1LgqanKKUxKlpWGbY
 =8yZd
 -----END PGP SIGNATURE-----

Merge tag 'reset-for-4.3-fixes' of git://git.pengutronix.de/git/pza/linux into drivers/reset

Merge "Reset controller fixes for v4.3" from Philipp Zabel:

Reset controller fixes for v4.3

- added stubs to avoid build breakage in COMPILE_TEST
  configurations with RESET_CONTROLLER disabled
- fixed missing spinlock initialization in ath79 driver

* tag 'reset-for-4.3-fixes' of git://git.pengutronix.de/git/pza/linux:
  reset: ath79: Fix missing spin_lock_init
  reset: Add (devm_)reset_control_get stub functions
This commit is contained in:
Kevin Hilman 2015-09-09 15:41:42 -07:00
commit 9738031561
2 changed files with 15 additions and 0 deletions

View file

@ -89,6 +89,7 @@ static int ath79_reset_probe(struct platform_device *pdev)
if (IS_ERR(ath79_reset->base))
return PTR_ERR(ath79_reset->base);
spin_lock_init(&ath79_reset->lock);
ath79_reset->rcdev.ops = &ath79_reset_ops;
ath79_reset->rcdev.owner = THIS_MODULE;
ath79_reset->rcdev.of_node = pdev->dev.of_node;

View file

@ -74,6 +74,20 @@ static inline int device_reset_optional(struct device *dev)
return -ENOSYS;
}
static inline struct reset_control *__must_check reset_control_get(
struct device *dev, const char *id)
{
WARN_ON(1);
return ERR_PTR(-EINVAL);
}
static inline struct reset_control *__must_check devm_reset_control_get(
struct device *dev, const char *id)
{
WARN_ON(1);
return ERR_PTR(-EINVAL);
}
static inline struct reset_control *reset_control_get_optional(
struct device *dev, const char *id)
{