Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux-seco-qcom
Manage
Activity
Members
Labels
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
qualcomm
linux-seco-qcom
Commits
d14c6481
Commit
d14c6481
authored
4 months ago
by
QCTECMDR Service
Committed by
Gerrit - the friendly Code Review server
4 months ago
Browse files
Options
Downloads
Plain Diff
Merge "PENDING: qcom: ice: Remove ice probe"
parents
a45d8859
8eb2a6b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/soc/qcom/ice.c
+8
-47
8 additions, 47 deletions
drivers/soc/qcom/ice.c
with
8 additions
and
47 deletions
drivers/soc/qcom/ice.c
+
8
−
47
View file @
d14c6481
...
@@ -66,8 +66,6 @@
...
@@ -66,8 +66,6 @@
#define qcom_ice_readl(engine, reg) \
#define qcom_ice_readl(engine, reg) \
readl((engine)->base + (reg))
readl((engine)->base + (reg))
static
bool
qcom_ice_create_error
;
struct
qcom_ice
{
struct
qcom_ice
{
struct
device
*
dev
;
struct
device
*
dev
;
void
__iomem
*
base
;
void
__iomem
*
base
;
...
@@ -611,15 +609,17 @@ struct qcom_ice *of_qcom_ice_get(struct device *dev)
...
@@ -611,15 +609,17 @@ struct qcom_ice *of_qcom_ice_get(struct device *dev)
goto
out
;
goto
out
;
}
}
ice
=
platform_get_drvdata
(
pdev
);
base
=
devm_platform_ioremap_resource
(
pdev
,
0
);
if
(
!
ice
)
{
if
(
IS_ERR
(
base
))
{
dev_warn
(
&
pdev
->
dev
,
"ICE registers not found
\n
"
);
return
PTR_ERR
(
base
);
}
ice
=
qcom_ice_create
(
&
pdev
->
dev
,
base
);
if
(
IS_ERR
(
ice
))
{
dev_err
(
dev
,
"Cannot get ice instance from %s
\n
"
,
dev_err
(
dev
,
"Cannot get ice instance from %s
\n
"
,
dev_name
(
&
pdev
->
dev
));
dev_name
(
&
pdev
->
dev
));
platform_device_put
(
pdev
);
platform_device_put
(
pdev
);
if
(
qcom_ice_create_error
)
ice
=
ERR_PTR
(
-
EOPNOTSUPP
);
else
ice
=
ERR_PTR
(
-
EPROBE_DEFER
);
goto
out
;
goto
out
;
}
}
...
@@ -638,44 +638,5 @@ struct qcom_ice *of_qcom_ice_get(struct device *dev)
...
@@ -638,44 +638,5 @@ struct qcom_ice *of_qcom_ice_get(struct device *dev)
}
}
EXPORT_SYMBOL_GPL
(
of_qcom_ice_get
);
EXPORT_SYMBOL_GPL
(
of_qcom_ice_get
);
static
int
qcom_ice_probe
(
struct
platform_device
*
pdev
)
{
struct
qcom_ice
*
engine
;
void
__iomem
*
base
;
base
=
devm_platform_ioremap_resource
(
pdev
,
0
);
if
(
IS_ERR
(
base
))
{
dev_warn
(
&
pdev
->
dev
,
"ICE registers not found
\n
"
);
return
PTR_ERR
(
base
);
}
engine
=
qcom_ice_create
(
&
pdev
->
dev
,
base
);
if
(
IS_ERR
(
engine
))
{
qcom_ice_create_error
=
true
;
return
PTR_ERR
(
engine
);
}
platform_set_drvdata
(
pdev
,
engine
);
return
0
;
}
static
const
struct
of_device_id
qcom_ice_of_match_table
[]
=
{
{
.
compatible
=
"qcom,inline-crypto-engine"
},
{
},
};
MODULE_DEVICE_TABLE
(
of
,
qcom_ice_of_match_table
);
static
struct
platform_driver
qcom_ice_driver
=
{
.
probe
=
qcom_ice_probe
,
.
driver
=
{
.
name
=
"qcom-ice"
,
.
of_match_table
=
qcom_ice_of_match_table
,
},
};
module_platform_driver
(
qcom_ice_driver
);
MODULE_DESCRIPTION
(
"Qualcomm Inline Crypto Engine driver"
);
MODULE_DESCRIPTION
(
"Qualcomm Inline Crypto Engine driver"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment