Merge tag 'amlogic-drivers-for-v6.19' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into soc/drivers-late
Amlogic Drivers for v6.19: - Canvas device leak fix and error handling simplification - Add more SoCs definitions - Suport more SoCs for meson-gx-ao-secure * tag 'amlogic-drivers-for-v6.19' of https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux: soc: amlogic: meson-gx-socinfo: add new SoCs id dt-bindings: arm: amlogic: meson-gx-ao-secure: support more SoCs soc: amlogic: canvas: simplify lookup error handling soc: amlogic: canvas: fix device leak on lookup Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -34,6 +34,9 @@ properties:
|
||||
- amlogic,a4-ao-secure
|
||||
- amlogic,c3-ao-secure
|
||||
- amlogic,s4-ao-secure
|
||||
- amlogic,s6-ao-secure
|
||||
- amlogic,s7-ao-secure
|
||||
- amlogic,s7d-ao-secure
|
||||
- amlogic,t7-ao-secure
|
||||
- const: amlogic,meson-gx-ao-secure
|
||||
- const: syscon
|
||||
|
||||
@@ -60,12 +60,9 @@ struct meson_canvas *meson_canvas_get(struct device *dev)
|
||||
return ERR_PTR(-ENODEV);
|
||||
|
||||
canvas_pdev = of_find_device_by_node(canvas_node);
|
||||
if (!canvas_pdev) {
|
||||
of_node_put(canvas_node);
|
||||
return ERR_PTR(-EPROBE_DEFER);
|
||||
}
|
||||
|
||||
of_node_put(canvas_node);
|
||||
if (!canvas_pdev)
|
||||
return ERR_PTR(-EPROBE_DEFER);
|
||||
|
||||
/*
|
||||
* If priv is NULL, it's probably because the canvas hasn't
|
||||
@@ -73,10 +70,9 @@ struct meson_canvas *meson_canvas_get(struct device *dev)
|
||||
* current state, this driver probe cannot return -EPROBE_DEFER
|
||||
*/
|
||||
canvas = dev_get_drvdata(&canvas_pdev->dev);
|
||||
if (!canvas) {
|
||||
put_device(&canvas_pdev->dev);
|
||||
put_device(&canvas_pdev->dev);
|
||||
if (!canvas)
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
return canvas;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,9 @@ static const struct meson_gx_soc_id {
|
||||
{ "A5", 0x3c },
|
||||
{ "C3", 0x3d },
|
||||
{ "A4", 0x40 },
|
||||
{ "S7", 0x46 },
|
||||
{ "S7D", 0x47 },
|
||||
{ "S6", 0x48 },
|
||||
};
|
||||
|
||||
static const struct meson_gx_package_id {
|
||||
@@ -86,6 +89,9 @@ static const struct meson_gx_package_id {
|
||||
{ "A311D2", 0x36, 0x1, 0xf },
|
||||
{ "A113X2", 0x3c, 0x1, 0xf },
|
||||
{ "A113L2", 0x40, 0x1, 0xf },
|
||||
{ "S805X3", 0x46, 0x3, 0xf },
|
||||
{ "S905X5M", 0x47, 0x1, 0xf },
|
||||
{ "S905X5", 0x48, 0x1, 0xf },
|
||||
};
|
||||
|
||||
static inline unsigned int socinfo_to_major(u32 socinfo)
|
||||
|
||||
Reference in New Issue
Block a user