We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c8aa44 commit ffbf6c3Copy full SHA for ffbf6c3
1 file changed
drivers/gpu/drm/asahi/driver.rs
@@ -11,7 +11,6 @@ use kernel::{
11
},
12
drm,
13
drm::ioctl,
14
- error::Result,
15
of,
16
platform,
17
prelude::*,
@@ -156,7 +155,7 @@ impl platform::Driver for AsahiDriver {
156
155
fn probe(
157
pdev: &platform::Device<Core>,
158
info: Option<&Self::IdInfo>,
159
- ) -> Result<Pin<KBox<Self>>> {
+ ) -> impl PinInit<Self, Error> {
160
debug::update_debug_flags();
161
162
dev_info!(pdev.as_ref(), "Probing...\n");
@@ -222,6 +221,6 @@ impl platform::Driver for AsahiDriver {
222
221
223
drm::driver::Registration::new_foreign_owned(&drm, pdev.as_ref(), 0)?;
224
225
- Ok(KBox::new(Self { drm }, GFP_KERNEL)?.into())
+ Ok(Self { drm })
226
}
227
0 commit comments