mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (77 commits) [POWERPC] Abolish powerpc_flash_init() [POWERPC] Early serial debug support for PPC44x [POWERPC] Support for the Ebony 440GP reference board in arch/powerpc [POWERPC] Add device tree for Ebony [POWERPC] Add powerpc/platforms/44x, disable platforms/4xx for now [POWERPC] MPIC U3/U4 MSI backend [POWERPC] MPIC MSI allocator [POWERPC] Enable MSI mappings for MPIC [POWERPC] Tell Phyp we support MSI [POWERPC] RTAS MSI implementation [POWERPC] PowerPC MSI infrastructure [POWERPC] Rip out the existing powerpc msi stubs [POWERPC] Remove use of 4level-fixup.h for ppc32 [POWERPC] Add powerpc PCI-E reset API implementation [POWERPC] Holly bootwrapper [POWERPC] Holly DTS [POWERPC] Holly defconfig [POWERPC] Add support for 750CL Holly board [POWERPC] Generalize tsi108 PCI setup [POWERPC] Generalize tsi108 PHY types ... Fixed conflict in include/asm-powerpc/kdebug.h manually Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
commit
df6d3916f3
217 changed files with 8175 additions and 2119 deletions
|
|
@ -144,7 +144,7 @@ int ams_sensor_attach(void)
|
|||
const u32 *prop;
|
||||
|
||||
/* Get orientation */
|
||||
prop = get_property(ams_info.of_node, "orientation", NULL);
|
||||
prop = of_get_property(ams_info.of_node, "orientation", NULL);
|
||||
if (!prop)
|
||||
return -ENODEV;
|
||||
ams_info.orient1 = *prop;
|
||||
|
|
@ -208,14 +208,14 @@ int __init ams_init(void)
|
|||
|
||||
#ifdef CONFIG_SENSORS_AMS_I2C
|
||||
np = of_find_node_by_name(NULL, "accelerometer");
|
||||
if (np && device_is_compatible(np, "AAPL,accelerometer_1"))
|
||||
if (np && of_device_is_compatible(np, "AAPL,accelerometer_1"))
|
||||
/* Found I2C motion sensor */
|
||||
return ams_i2c_init(np);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SENSORS_AMS_PMU
|
||||
np = of_find_node_by_name(NULL, "sms");
|
||||
if (np && device_is_compatible(np, "sms"))
|
||||
if (np && of_device_is_compatible(np, "sms"))
|
||||
/* Found PMU motion sensor */
|
||||
return ams_pmu_init(np);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ int __init ams_i2c_init(struct device_node *np)
|
|||
ams_info.bustype = BUS_I2C;
|
||||
|
||||
/* look for bus either using "reg" or by path */
|
||||
prop = get_property(ams_info.of_node, "reg", NULL);
|
||||
prop = of_get_property(ams_info.of_node, "reg", NULL);
|
||||
if (!prop) {
|
||||
result = -ENODEV;
|
||||
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ int __init ams_pmu_init(struct device_node *np)
|
|||
ams_info.bustype = BUS_HOST;
|
||||
|
||||
/* Get PMU command, should be 0x4e, but we can never know */
|
||||
prop = get_property(ams_info.of_node, "reg", NULL);
|
||||
prop = of_get_property(ams_info.of_node, "reg", NULL);
|
||||
if (!prop) {
|
||||
result = -ENODEV;
|
||||
goto exit;
|
||||
|
|
|
|||
Loading…
Reference in a new issue